Hide all slugs

Adding this PHP code to the functions.php of your wordpress theme will hide the slugs from the post editor admin page.

 

 

function hide_all_slugs() {
global $post;
$hide_slugs = "<style type="text/css"> #slugdiv, #edit-slug-box { display: none; }</style>";
print($hide_slugs);
}
add_action( 'admin_head', 'hide_all_slugs'  );

Be Sociable, Share!

Leave a comment