New Landing How can we help? Themeforest Theme Support Neighborhood Remove Custom Post Types

Viewing 6 posts - 16 through 21 (of 21 total)
  • #202921
    iquarius
    Member
    Post count: 32
    This reply has been marked as private.
    #202922
    iquarius
    Member
    Post count: 32
    This reply has been marked as private.
    #202923
    iquarius
    Member
    Post count: 32
    This reply has been marked as private.
    #203315
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Can’t get it to work. Would be enough to hide the menu links in the admin? so the users don’t see those options.

    -Rui

    #203333
    iquarius
    Member
    Post count: 32

    Thank you very much for trying Rui, why would it work for some users and it doesn’t work for me?

    #204018
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this php code at functions.php of child theme:-

    add_action( 'plugins_loaded','sf_custom_post_remove', 100 );
    
    function sf_custom_post_remove() {
    
    remove_action( 'init', 'faqs_register');
    remove_action( 'init', 'clients_register');
    remove_action( 'init', 'jobs_register');
    remove_action( 'init', 'portfolio_register');
    remove_action( 'init', 'team_register');
    remove_action( 'init', 'testimonials');
    }
    

    Thanks
    Mohammad

Viewing 6 posts - 16 through 21 (of 21 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register