Hello Airone, try adding this to your theme’s functions.php;
remove_action('init', array($cyclone_slider_plugin_instance, 'create_post_types'));
function cyclone_create_post_types() {
register_post_type( 'cycloneslider',
array(
'labels' => array(
'name' => __('Cyclone Slider', 'cycloneslider'),
'singular_name' => __('Slideshow', 'cycloneslider'),
'add_new' => __('Add Slideshow', 'cycloneslider'),
'add_new_item' => __('Add New Slideshow', 'cycloneslider'),
'edit_item' => __('Edit Slideshow', 'cycloneslider'),
'new_item' => __('New Slideshow', 'cycloneslider'),
'view_item' => __('View Slideshow', 'cycloneslider'),
'search_items' => __('Search Slideshows', 'cycloneslider'),
'not_found' => __('No slideshows found', 'cycloneslider'),
'not_found_in_trash' => __('No slideshows found in Trash', 'cycloneslider')
),
'capabilities' => array(
'publish_posts' => 'manage_options',
'edit_posts' => 'manage_options',
'edit_others_posts' => 'manage_options',
'delete_posts' => 'manage_options',
'delete_others_posts' => 'manage_options',
'read_private_posts' => 'manage_options',
'edit_post' => 'manage_options',
'delete_post' => 'manage_options',
'read_post' => 'manage_options',
),
'supports' => array('title'),
'public' => false,
'exclude_from_search' => true,
'show_ui' => true,
'menu_position' => 100
)
);
}
add_action( 'init', 'cyclone_create_post_types' );
Thread Starter
Airone
(@airone)
THANX THANX THANX
…it works so nice! Just like the rest of your plug-in!!!!
Peace,
Airone
Your welcome. I will make it visible for admins only on the next version. That seem to be the most appropriate use case anyways.
Cheers!