• Resolved sraabe

    (@sraabe)


    Hi all,

    I want to enable the duplicate/clone for a custom post type from the functions.php. I want to ensure that all sites with this theme of a multisite network are using this configuration.

    Is it possible to add a custom post type from the functions.php?

    Thanks,

    Stephan

Viewing 1 replies (of 1 total)
  • Plugin Author Enrico Battocchi

    (@lopo)

    Hi @sraabe,
    sorry for the delay!

    You should be able to do it by setting the option duplicate_post_types_enabled, for example:
    update_option('duplicate_post_types_enabled', array('post', 'page', 'mycustomposttype'));

    Hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Network configuration & theme support’ is closed to new replies.