public function init() { IfwPsn_Wp_Proxy_Action::addAdminMenu(array($this, '_load')); if ($this->_pm->getAccess()->getPage() == $this->getSlug()) { IfwPsn_Wp_Proxy_Action::addInit(array($this, 'onInit')); } }
private function _init() { IfwPsn_Wp_Proxy_Action::addInit(array($this, '_register')); if (method_exists($this, 'getCustomColums')) { IfwPsn_Wp_Proxy_Action::add('manage_' . $this->getId() . '_posts_columns', array($this, 'getCustomColums')); } if (method_exists($this, 'getColumsContent')) { IfwPsn_Wp_Proxy_Action::add('manage_' . $this->getId() . '_posts_custom_column', array($this, 'getColumsContent'), 10, 2); } if (method_exists($this, 'getSortableColumns')) { IfwPsn_Wp_Proxy_Action::add('manage_edit-' . $this->getId() . '_sortable_columns', array($this, 'getSortableColumns')); } if (method_exists($this, 'restrictManagePosts')) { IfwPsn_Wp_Proxy_Action::add('restrict_manage_posts', array($this, 'restrictManagePosts')); } }