Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #3041382
Disable Gem Post types
Closed

Comments

  • 23desarrollos started the conversation

    Hi,

    how can I completely disable testimonials, teams, and portfolio post types. Will the answer help performance?

    Thank you 

  •  7,121
    Oliver replied

    Hi,

    No, you don't need to make it, performance won't change if you deactivate post types.. 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • 23desarrollos replied

    Thanks. How Can I deactivate them anyway?

  •  7,121
    Oliver replied

    HI,

    Here is code example:

    function delete_post_type(){
       unregister_post_type( 'thegem_pf_item' );
        unregister_post_type( 'thegem_testiminials' );
        unregister_post_type( 'thegem_team_person');
    }
    add_action('init','delete_post_type');
    

    Add this code to the functions.php of the child theme.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • 23desarrollos replied

    Hi, testimonials are not disabled.

    there's a mispelling in the code ( 'thegem_testiminials' );...but changing to unregister_post_type( 'thegem_testimonials' );

    also doesn't work

  •  7,121
    Oliver replied

    Hi,

    pls. give me wp-admin and FTP access

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver