@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * @since 1.0.0 |
| 93 | 93 | */ |
| 94 | 94 | private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) { |
| 95 | - $hooks[] = array( |
|
| 95 | + $hooks[ ] = array( |
|
| 96 | 96 | 'hook' => $hook, |
| 97 | 97 | 'component' => $component, |
| 98 | 98 | 'callback' => $callback, |
@@ -110,11 +110,11 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | public function run() { |
| 112 | 112 | foreach ( $this->filters as $hook ) { |
| 113 | - add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
| 113 | + add_filter( $hook[ 'hook' ], array( $hook[ 'component' ], $hook[ 'callback' ] ), $hook[ 'priority' ], $hook[ 'accepted_args' ] ); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | foreach ( $this->actions as $hook ) { |
| 117 | - add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); |
|
| 117 | + add_action( $hook[ 'hook' ], array( $hook[ 'component' ], $hook[ 'callback' ] ), $hook[ 'priority' ], $hook[ 'accepted_args' ] ); |
|
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | } |