From 00c5f7d7338c95fcc6ab858252ac384546ff575a Mon Sep 17 00:00:00 2001 From: Tom McFarlin Date: Thu, 8 May 2014 16:50:23 -0400 Subject: [PATCH] adding a public getter for the plugin slug so that external classes can reference it ht @garyjoes https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/commit/b5549d5f9cc427c6406d52954c139419a5426495#commitcomment-6236733 --- plugin-name/trunk/includes/class-plugin-name.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin-name/trunk/includes/class-plugin-name.php b/plugin-name/trunk/includes/class-plugin-name.php index fe6bd73..ee83daa 100644 --- a/plugin-name/trunk/includes/class-plugin-name.php +++ b/plugin-name/trunk/includes/class-plugin-name.php @@ -37,6 +37,10 @@ class Plugin_Name { $this->loader->run(); } + public function get_plugin_slug() { + return $this->plugin_slug; + } + /** * This class is used to define common functionality that exists between * both the dashboard and the public-facing side of the website. Think