Exemple #1
0
 /**
  * Loads the appropriate action for adding contextual help
  */
 public function load()
 {
     if (IfwPsn_Wp_Proxy_Blog::isMinimumVersion('3.3')) {
         // since 3.3 use the add_help_method on the screen object
         IfwPsn_Wp_Proxy_Action::addAdminHead(array($this, 'addHelpTab'));
     } else {
         // before 3.3 use the contextual_help action
         IfwPsn_Wp_Proxy_Action::add('contextual_help', array($this, 'getContextualHelp'), 10, 3);
     }
 }