public function prep() { parent::prep(); add_action('wp_ajax_' . $this->get_action_tag('ajax_get_front'), array($this, 'ajax_get_front')); add_action('wp_ajax_' . $this->get_action_tag('ajax_get_config'), array($this, 'ajax_get_config')); }
public function prep() { parent::prep(); foreach ($this->taxonomies as $tax) { add_action('create_' . $tax, array($this, 'save')); } }