Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. function pm_allow_cpt($post_types) {
  2.     if(is_array($post_types) && in_array('ajde_events', $post_types)) {
  3.         $key = array_search('ajde_events', $post_types);
  4.         unset($post_types[$key]);
  5.     }
  6.  
  7.     return $post_types;
  8. }
  9. add_filter('permalink_manager_disabled_post_types', 'pm_allow_cpt', 999);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement