|
@@ 104-106 (lines=3) @@
|
| 101 |
|
* @since 6.0.0
|
| 102 |
|
*/
|
| 103 |
|
public function run() {
|
| 104 |
|
foreach ( $this->filters as $hook ) {
|
| 105 |
|
add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
|
| 106 |
|
}
|
| 107 |
|
foreach ( $this->actions as $hook ) {
|
| 108 |
|
add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
|
| 109 |
|
}
|
|
@@ 107-109 (lines=3) @@
|
| 104 |
|
foreach ( $this->filters as $hook ) {
|
| 105 |
|
add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
|
| 106 |
|
}
|
| 107 |
|
foreach ( $this->actions as $hook ) {
|
| 108 |
|
add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
|
| 109 |
|
}
|
| 110 |
|
}
|
| 111 |
|
} |