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:
parent
0f4aaa9693
commit
81b3c8bd6d
1 changed files with 2 additions and 2 deletions
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue