public function __construct($sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework')
 {
     parent::__construct($sOptionKey, $sCallerPath, $sCapability, $sTextDomain);
     if ($this->oProp->bIsAdminAjax) {
         return;
     }
     add_action('admin_head', array($this, '_replyToEnableMetaBox'));
 }
 public function __construct($sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework')
 {
     parent::__construct($sOptionKey, $sCallerPath, $sCapability, $sTextDomain);
     if ($this->oProp->bIsAdminAjax) {
         return;
     }
     add_action('admin_head', array($this, '_replyToEnableMetaBox'));
     add_filter('screen_layout_columns', array($this, '_replyToSetNumberOfScreenLayoutColumns'), 10, 2);
 }
コード例 #3
0
 /**
  * Sets up hooks and properties.
  */
 function __construct($sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework')
 {
     parent::__construct($sOptionKey, $sCallerPath, $sCapability, $sTextDomain);
     if ($this->oProp->bIsAdminAjax) {
         return;
     }
     add_action('admin_head', array($this, '_replyToEnableMetaBox'));
     // since the screen object needs to be established, some hooks are too early like admin_init or admin_menu.
     add_filter('screen_layout_columns', array($this, '_replyToSetNumberOfScreenLayoutColumns'), 10, 2);
     // sets the column layout option for meta boxes.
 }