The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other [WordPress] is it possible to register a new custom_post_type when a new top level menu is added

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #35322

    hi all,

    I’m trying to develop a function that will create a new custom_post_type when a top level menu link is created by the user.

    Does anybody have any clue as to where i’d start? i’ve searched every where. I’ve researched Hooks, looked at wp_get_nav_menu_items and pulling the post type from that, if it doesn’t already exist, register_post_type.

    i’m completely lost really. Hope someone can help,




    Off the top of my head, I don’t think you’ll be able to do that simply when a user creates a new page.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.