public function run()
    {
        // Enqueue styles and scripts
        $this->action('wp_enqueue_scripts', $this->enqueue('wp'));
        $this->action('admin_enqueue_scripts', $this->enqueue('admin'));

        foreach ($this->filters as $hook) {
            add_filter($hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args']);
        }

        foreach ($this->actions as $hook) {
            add_action($hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args']);
        }
    }
public function run()
    {
        // Enqueue styles and scripts
        $this->action('wp_enqueue_scripts', $this->enqueue('wp'));
        $this->action('admin_enqueue_scripts', $this->enqueue('admin'));

        foreach ($this->filters as $hook) {
            add_filter($hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args']);
        }

        foreach ($this->actions as $hook) {
            add_action($hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args']);
        }
    }
public function run ( ) { // Enqueue styles and scripts $ this -> action ( 'wp_enqueue_scripts' , $ this -> enqueue ( 'wp' ) ) ; $ this -> action ( 'admin_enqueue_scripts' , $ this -> enqueue ( 'admin' ) ) ; foreach ( $ this -> filters as $ hook ) { add_filter ( $ hook [ 'hook' ] , $ hook [ 'callback' ] , $ hook [ 'priority' ] , $ hook [ 'accepted_args' ] ) ; } foreach ( $ this -> actions as $ hook ) { add_action ( $ hook [ 'hook' ] , $ hook [ 'callback' ] , $ hook [ 'priority' ] , $ hook [ 'accepted_args' ] ) ; } }
Register the filters and actions with WordPress.

@since   1.0.0
Register the filters and actions with WordPress .