Post Points Hook

The post points hook awards points when a new post is published. It not only works with posts, but with pages, attachments, and custom post types.

Options for the post points hook

Options for the post points hook

Configuration #

The hook may be configured to award points for only a single post type, like Pages, or for any post type. If you choose the “Any” option, points will be awarded for a post that is of any of the types listed in the dropdown. If a post type isn’t listed in the dropdown, that is because it is not being registered as a public post type. The public post types that WordPress currently (3.9) includes are Posts, Pages, and Attachments. Other post types may be added by plugins, and these will be listed as well.

If you want to award points for multiple post types, but not all of them, you can add multiple instances of the hook to your points type, and configure each of them to award points for a single post type. For example, you may wish to award points for Posts and Attachments, but not Pages. This can be done by adding one instance of the hook and selecting Posts, and another instance for Attachments. This also allows you to award different amounts of points for different post types.

The points will be awarded the first time that a post is published. If the post was already published before the plugin was installed, points will be awarded the first time that the post is updated. Since version 1.9.0, the points will automatically be removed when the post is permanently deleted. (Just moving the post to the trash has no effect, you must permanently delete it.)