1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-05-14 01:02:12 +03:00

updating the foreach loop from a previous version of the loop

This commit is contained in:
Tom McFarlin 2014-05-05 00:28:02 -04:00
parent 5265d1f0ae
commit 7e64091fd4

View file

@ -54,10 +54,9 @@ class Plugin_Name_Loader {
* achieved via dependency injection by passing an instance of Plugin_Name * achieved via dependency injection by passing an instance of Plugin_Name
* into this class. * into this class.
* *
* Each hook then corresponds to a public function defined within the Plugin_Name_Admin * TODO
* class.
*/ */
foreach ( $this->hooks as $plugin_name => $hook ) { foreach ( $this->hooks as $hook ) {
add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ) ); add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ) );
} }