Is there any way how to edit the title field in post.php?

this field: enter image description here

I want to remove the permalink part but I wasn't able to find any hook or filter for it.

1 Answer 1


I'm running the most up to date version of WordPress which has made changes to how permalinks are displayed and handled. There's no longer a View Post button. I was able to remove the whole area using the get_sample_permalink_html hook. Just return an empty string:

function hide_permalink() {
    return '';
add_filter( 'get_sample_permalink_html', 'hide_permalink' );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.