no comments
This commit is contained in:
parent
59ce40b458
commit
67cc7b3696
|
|
@ -10,3 +10,20 @@ function metiers_du_patrimoine_custom_admin_stylesheet()
|
|||
}
|
||||
|
||||
add_action('admin_head', 'metiers_du_patrimoine_custom_admin_stylesheet');
|
||||
|
||||
/* ---------------------------
|
||||
COMMENTS REMOVAL
|
||||
---------------------------*/
|
||||
|
||||
function metiers_remove_meta_boxes()
|
||||
{
|
||||
# Removes meta from Posts #
|
||||
// remove_meta_box('postexcerpt', 'post', 'normal');
|
||||
// remove_meta_box('postcustom', 'post', 'normal');
|
||||
// remove_meta_box('trackbacksdiv', 'post', 'normal');
|
||||
remove_meta_box('commentstatusdiv', 'page', 'normal');
|
||||
remove_meta_box('commentsdiv', 'page', 'normal');
|
||||
remove_post_type_support('artisans', 'comments');
|
||||
remove_post_type_support('chantiers', 'comments');
|
||||
}
|
||||
add_action('admin_init', 'metiers_remove_meta_boxes');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user