Your account expired support, please renew to get your support.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29907
    Clintwinkler
    Support Expired

    We do not need the Accommodations or Activities CPTs. Is there a simple way to remove, disable, or change them to more closely fit our needs?

    #29918

    Hello,

    To delete CPTs, please add this custom code to the file functions.php ( child-theme):

    function activland_delete_post_type(){
      //Remove Accommodation
      unregister_post_type( 'accommodation' );
    
      //Remove Activities
      unregister_post_type( 'activland_activities' );
    
      //Remove What We Do
      unregister_post_type( 'activland_whatwedo' );
    }
    add_action('init','activland_delete_post_type', 100);
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.