hiding thumbnails from pages
This commit is contained in:
parent
2948b6fbed
commit
25c65d376b
|
|
@ -121,8 +121,15 @@ function remove_meta_boxes()
|
|||
}
|
||||
add_action('admin_init', 'remove_meta_boxes');
|
||||
|
||||
/* ----------------------------------
|
||||
HIDE THUMBNAIL SUPPORT ON PAGES
|
||||
-----------------------------------*/
|
||||
|
||||
|
||||
add_action('init', 'remove_thumbnail_support');
|
||||
function remove_thumbnail_support()
|
||||
{
|
||||
remove_post_type_support('page', 'thumbnail');
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user