AnsPress::setup_hooks()
Description #
Register the filters and actions with WordPress.
Source #
File: anspress-question-answer.php
public function setup_hooks() { foreach ( $this->filters as $hook ) { add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); } foreach ( $this->actions as $hook ) { add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); } }
Expand full source code Collapse full source code View on GitHub: anspress-question-answer.php:471
Add your comment