mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2025-01-03 01:33:54 +02:00
updating the foreach loop from a previous version of the loop
This commit is contained in:
parent
5265d1f0ae
commit
7e64091fd4
1 changed files with 2 additions and 3 deletions
|
@ -54,10 +54,9 @@ class Plugin_Name_Loader {
|
|||
* achieved via dependency injection by passing an instance of Plugin_Name
|
||||
* into this class.
|
||||
*
|
||||
* Each hook then corresponds to a public function defined within the Plugin_Name_Admin
|
||||
* class.
|
||||
* TODO
|
||||
*/
|
||||
foreach ( $this->hooks as $plugin_name => $hook ) {
|
||||
foreach ( $this->hooks as $hook ) {
|
||||
add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue