|
@@ 112-114 (lines=3) @@
|
| 109 |
|
* @since 1.0.0 |
| 110 |
|
*/ |
| 111 |
|
public function run() { |
| 112 |
|
foreach ( $this->filters as $hook ) { |
| 113 |
|
add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
foreach ( $this->actions as $hook ) { |
| 117 |
|
add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
@@ 116-118 (lines=3) @@
|
| 113 |
|
add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
foreach ( $this->actions as $hook ) { |
| 117 |
|
add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
| 118 |
|
} |
| 119 |
|
} |
| 120 |
|
} |
| 121 |
|
|