Skip to content

s2_post_types

  • Subscribe2
  • Updated Nov 23, 2023
  • 1 min read

this hook allows the registration of Custom Post Types in Subscribe2 so that notifications can be sent for new posts created in such a custom post type. This hook may need to be used with the ‘s2_taxonomies’ hook details next.

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

Last updated on

Filed under Hooks, API & Customization

Still stuck?

Our support team can walk you through it.