WordPress.org

Ready to get started?Download WordPress

Ideas

Dynamic (sub)menu items

  1. Marko Miljus
    Member

    It would be great that we have an option to call functions with arguments with add_menu_page and add_submenu_page. That would allow creating menu or submenu items dynamically.

    Example:

    ?php add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function($ARGUMENT), $icon_url, $position ); ?>

    Posted: 1 year ago #
  2. Lyoha
    Member

    You want to call this function in a template?

    Posted: 1 year ago #
  3. bcodev
    Member


RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    1 Vote
  • Status

    This idea is under consideration