LLMS_Abstract_Processor::add_actions()

Add actions defined in $this->actions


Return Return

(void)


Top ↑

Source Source

File: includes/abstracts/llms.abstract.processor.php

82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
public function add_actions() {
 
    foreach ( $this->get_actions() as $action => $data ) {
 
        $data = wp_parse_args(
            $data,
            array(
                'arguments' => 1,
                'priority'  => 10,
            )
        );
 
        add_action( $action, array( $this, $data['callback'] ), $data['priority'], $data['arguments'] );
 
    }
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.