Disable portfolio cpt

If a client isn’t using the portfolio cpt, is it possible to disable it, so it doesn’t show up on the admin menu?

Hi @Parkinson_Canada,

Thanks for writing around! There is a way to hide it, just add the following code in your child theme’s functions.php file:

add_action('admin_head', 'hide_portfolio');

function hide_portfolio() {
  echo '<style>
    li#menu-posts-x-portfolio {
    display: none;
}
  </style>';
}

Hope this helps!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.