Subscribe2 and Custom Post Types

One of the new features introduced with WordPress 3.0 is custom post types. These are defined using code by developers and bloggers with a knowledge of PHP to allow WordPress to be extended to more of a CMS solution.

Subscribe2 can be enabled to send notifications for your custom post types by use of a filter. The code below give an example of how to register your custom post type with Subscribe2 so that these articles generate an email notification. I’d suggest you add this code to the plugin you are using to create your custom post type.

function my_post_types($types) {
	$types[] = 'my_post_type';
	return $types;
}

add_filter('s2_post_types', 'my_post_types');