Guest User

Untitled

a guest
Feb 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. add_filter( 'hsph_plugin_tagging_topics_post_types', 'register_custom_post_types_for_tagging' );
  3.  
  4. function register_custom_post_types_for_tagging( $post_types = array() ) {
  5. // Array of custom post types.
  6. $cutom_post_types = array( 'custom-post-type-slug1', 'custom-post-type-slug2' );
  7. // Merging default post types and custom post types.
  8. $post_types = array_merge( $post_types, $cutom_post_types );
  9.  
  10. return $post_types;
  11. }
Add Comment
Please, Sign In to add comment