Hide separator from admin bar
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
function sportspress_separator_post_init() {
|
function sportspress_separator_post_init() {
|
||||||
$args = array(
|
$args = array(
|
||||||
|
'label' => '',
|
||||||
'public' => false,
|
'public' => false,
|
||||||
'show_ui' => true,
|
'show_ui' => true,
|
||||||
'show_in_nav_menus' => false,
|
'show_in_nav_menus' => false,
|
||||||
|
'show_in_admin_bar' => false,
|
||||||
|
'capability_type' => 'sp_private'
|
||||||
);
|
);
|
||||||
register_post_type( 'sp_separator', $args );
|
register_post_type( 'sp_separator', $args );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user