/** * Hanlde Metabox initialization process * * @return void * * @access public */ public function metaboxes() { global $post; //make sure that nobody is playing with screen options if ($post instanceof WP_Post) { $screen = $post->post_type; } elseif ($screen_object = get_current_screen()) { $screen = $screen_object->id; } else { $screen = ''; } if (aam_Core_Request::get('aam_meta_init')) { try { $model = new aam_View_Metabox(); $model->run($screen); } catch (Exception $e) { } } else { $this->getUser()->getObject(aam_Control_Object_Metabox::UID)->filterBackend($screen); } }
/** * * @return type */ public function isSecurityScreen() { return aam_Core_Request::get('page') == 'aam-security' ? true : false; }