Create custom post types at network level in a multisite
-
Hello everybody! Is it possible to create custom post types at network level in a multisite? if yes, is it possible from a plugin?
Currently, all the sites have the same custom post type that are been using as settings page. I need a new feature that allows me to configure these settings at network level, and all of the sites for that network could read that setting if they need. Otherwise, they could continue to use their own settings (custom post type at site level).
I know I could use a setting page at network level for this, but it causes a high effort than a cpt at network level option, since I already have the cpt created and I only need to replicate the format.
I created a new menu and submenu at network level using the network_admin_menu hook, but when I want to register the new custom post type using the init hook and register_post_type wordpress function….the custom post type is created in site level instead of network.
Any idea?
The topic ‘Create custom post types at network level in a multisite’ is closed to new replies.