1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 11:53:53 +02:00

Updating the arguments passed to the classes

This commit is contained in:
Tom McFarlin 2014-07-29 17:10:31 -04:00
parent 0f4aaa9693
commit 81b3c8bd6d

View file

@ -149,7 +149,7 @@ class Plugin_Name {
*/
private function define_admin_hooks() {
$plugin_admin = new Plugin_Name_Admin( $this->get_version() );
$plugin_admin = new Plugin_Name_Admin( $this->get_plugin_slug(), $this->get_version() );
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
@ -165,7 +165,7 @@ class Plugin_Name {
*/
private function define_public_hooks() {
$plugin_public = new Plugin_Name_Public( $this->get_version() );
$plugin_public = new Plugin_Name_Public( $this->get_plugin_slug(), $this->get_version() );
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );