I want to remove completely this section under my title in my custom post type. (I don’t need this because I use this only for content management).
With this piece of code I can remove the permalink section:
add_filter('get_sample_permalink_html', 'myfunction', '',4);
function myfunction($return, $id, $new_title, $new_slug) {
global $post;
return ($post->post_type == 'mycustomposttype') ? '' : $return;
}
Now it looks like this but I want to remove the “Get Shortlink” button too.
Is there another filter for doing that?
And yes… with CSS it’s easy but I think a hook would be a better solution 🙂