How to show Custom Post Type in Admin Sidebar for all sites

Case of such a setting to Custom Post Type in a your Multisite now.

now_cpt_setting

 

A description of how to make this case.

cpt_setting_finish_screen

 

 

First I will explain how to do.
Then I will explain the cause.

 

 

How to do

 

I’m using this Custom Post Type UI plugin.

[1] In each site to create each custom post type to use.

site1_setting

site2_setting

 

[2] Create default site of all custom post type.

First, You create the default site a custom post type of all.

cpt_setting_default_site

 

 

[3] Setting the all Custom Post Type to be used in all sites in the WP Admin UI Customize.

setting_wpadminuicustomize

 

 [4] Hide custom post type to the use the default site.

setting_default_cpt

 

It allows you to display menu like this in this.

cpt_setting_finish_screen

 

 

Cause

 

Default site do not have any other custom post type.

Therefore it is not possible to select a menu from the WP Admin UI Customize.
The unified master site
It is a feature this.

 

 

Future

 

Custom post types of other sites.

I will consider the function so that you can drag from the list.

For example, in this way.

 

Side menu setting screen sample

Side menu setting screen sample

I’m sorry, I can not still this. Because get_post_types() is can not get in on Network.

 

 

 

 

 

Leave a Reply