Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #8953
      cosmocanuck
      Member

      Hi! I saw what seemed to be a very similar issue to mine, posted quite recently:

      https://piklist.com/support/topic/changing-admin-menu-for-custom-admin-pages/

      I’m having the same issue though I am following the documentation to the letter. No extra commas or anything… 8^)

      Here’s the code in my functions.php file:

      /* Add a page in the Dashboard where we can add custom code for a web ad  */
      
      add_filter('piklist_admin_pages', 'my_admin_pages');
      
      function my_admin_pages($pages) {
      
          $pages[] = array(
            'page_title' => 'Banner ad'
            ,'menu_title' => 'Manage'
            ,'menu_slug' => 'manage_ad_html'
            ,'capability' => 'manage_options'
          );
      
          return $pages;
        }

      …but no “Banner ad” menu appears in my Dashboard.

      Can you advise? Thanks!

    • #8980
      Steve
      Keymaster

      Works for me. It’s actually a “manage” menu

    • #9005
      cosmocanuck
      Member

      Aha! Of course. My bad. Thanks!

    • #9007
      Steve
      Keymaster

      Great. Closing ticket.

Viewing 3 reply threads
  • The topic ‘Add admin page: just not working’ is closed to new replies.