mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
adding a public getter for the plugin slug so that external classes can reference it
ht @garyjoes b5549d5f9c (commitcomment-6236733)
This commit is contained in:
parent
71f40d5e7a
commit
00c5f7d733
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ class Plugin_Name {
|
||||||
$this->loader->run();
|
$this->loader->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function get_plugin_slug() {
|
||||||
|
return $this->plugin_slug;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is used to define common functionality that exists between
|
* This class is used to define common functionality that exists between
|
||||||
* both the dashboard and the public-facing side of the website. Think
|
* both the dashboard and the public-facing side of the website. Think
|
||||||
|
|
Loading…
Reference in a new issue