Shortcode_Button::hooks PHP Method

hooks() public method

Hook it all in. non-ajax hooks check for a conditional callback
Since: 0.1.0
public hooks ( )
    public function hooks()
    {
        add_action('wp_ajax_wp_sc_form_process_' . $this->button_slug, array($this, 'process_form'));
        // If we have a conditional callback and the return of the callback is false
        if ($this->args['conditional_callback'] && is_callable($this->args['conditional_callback']) && !call_user_func($this->args['conditional_callback'], $this)) {
            // Then that means we should bail
            return;
        }
        add_action('admin_init', array($this, 'button_init'));
        add_action('scb_modal', array($this, 'add_modal_form'));
        add_action('admin_footer', array($this, 'get_cmb_config'), 6);
        add_action('admin_footer', array(__CLASS__, 'add_quicktag_button_script'), 7);
        add_action('wp_ajax_scb_parse_shortcode', array(__CLASS__, 'ajax_parse_shortcode'));
        if (!self::$scripts_url) {
            $url = set_url_scheme(str_ireplace(ABSPATH, site_url('/'), self::$dir));
            self::$scripts_url = apply_filters('shortcode_button_assets_url', $url);
        }
    }