Subscribe2 and Custom Taxonomy Types

Subscribe2 was recently extended to allow notifications to be sent for Custom Post Types.

This introduction of code also highlighted the ability in WordPress to create Custom Taxonomy Types. Again, this is something done by developers and bloggers with a knowledge of PHP code.

Subscribe2 has now been extended again to allow the addition of custom taxonomies into the ‘categories’ that are used in WordPress by default. To add a custom taxonomy you have already created you need to added the following code into a custom plugin or to the function.php file in your theme.

function my_taxonomy_types($taxonomies) {
	// where 'my_taxonomy_type' is the name of your custom taxonomy
	$taxonomies[] = 'my_taxonomy_type';
	return $taxonomies;
}
add_filter('s2_taxonomies', 'my_taxonomy_types');