Exemplo n.º 1
0
 protected function _hooks()
 {
     parent::_hooks();
     //Init fields
     add_action('init', $this->m('register_types'));
     //Init placeholders
     add_action('init', $this->m('register_placeholders'));
 }
Exemplo n.º 2
0
 protected function _hooks()
 {
     parent::_hooks();
     // Register fields
     $this->util->add_action('register_fields', $this->m('register_fields'), 10, 1, false);
     // Set option parents
     $this->util->add_action('fields_registered', $this->m('set_parents'), 10, 1, false);
     // Building
     $this->util->add_action('build_init', $this->m('build_init'));
     // Admin
     $this->util->add_action('admin_page_render_content', $this->m('admin_page_render_content'), 10, 3, false);
     $this->util->add_filter('admin_action_reset', $this->m('admin_action_reset'), 10, 3, false);
 }