I have created Must use plugins which is not showing in wordpress dashboard
-
I am trying to display custom post types called Events and I have created mu-plugins folder and written code below.
<?php function post_types_events() { register_post_type('event', array( 'public' => true, 'menu_icon' => 'dashicons-calender', 'labels' => array( 'name' => 'Events', 'add_new_item' => 'Add New Event', 'edit_item' => 'Edit Event', 'all_items' => 'All Events', 'singular_name' => 'Event' ) )); } add_action('init', 'post_types_events'); ?>
I am using WP version 6.1.1. When I place those above codes in functions.php files then I can see custom post type icons on admin dashboard but when I place it in mu-plugins folder then I dont see any icons on dashboard. Please see attached images.
Image link: https://ibb.co/PwZvhqs
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘I have created Must use plugins which is not showing in wordpress dashboard’ is closed to new replies.