LLMS_Abstract_Processor::add_actions()
Add actions defined in $this->actions
Return Return
(void)
Source Source
File: includes/abstracts/llms.abstract.processor.php
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'] );
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.15.0 | Introduced. |