Forums

how do I link in admin-plugin (1 post)

  1. askbar
    Member
    Posted 1 year ago #

    I'm writing a plugin, but how do I link to my own class-functions without using add_submenu_page(...)? I have a class and all add_submenu_page links fine, I can load and save stuff etc. But from from some functions I'd like to link to others which are not in the menu - how do I do that ?

    class myPlugin  {
     function menu(){
      add_submenu_page(...,array('myPlugin','menuFunction1'));
     }
    
     function menuFunction1(){
      echo '<a href="/how-do-I-link-to-this-function" >link</a>';
     }
    
     function how-do-I-link-to-this-function(){
      ...;
     }
    }

    hope it makes sense ?

    Ask

Topic Closed

This topic has been closed to new replies.

About this Topic