Guest User

Untitled

a guest
Jan 14th, 2020
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data