From fc2b3109dd63156c321c5abab780bc56c2082ec4 Mon Sep 17 00:00:00 2001 From: Tom McFarlin Date: Wed, 30 Apr 2014 22:56:05 -0400 Subject: [PATCH] defining the loader functionality to be used via dependency injection --- .../class-plugin-name-public-loader.php | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/plugin-name/trunk/public/class-plugin-name-public-loader.php b/plugin-name/trunk/public/class-plugin-name-public-loader.php index e69de29..3da631b 100644 --- a/plugin-name/trunk/public/class-plugin-name-public-loader.php +++ b/plugin-name/trunk/public/class-plugin-name-public-loader.php @@ -0,0 +1,54 @@ + + * @license GPL-2.0+ + * @link URL + * @copyright 2014 Your Name of Your Company Name + */ +class Plugin_Name_Public_Loader { + + /** + * @TODO + * Short description. (use period) + * + * Long description. + * + * @since 1.0.0 + * @link URL + * @param type $plugin_name_public TODO + */ + public function run( $plugin_name_public ) { + + /** + * @TODO + * + * This function is used to define the various hooks that are used in the + * public-facing side of the plugin. This is achieved via dependency injection + * by passing an instance of Plugin_Name_Public into this class. + * + * Each hook then corresponds to a public function defined within the Plugin_Name_Public + * class. + * + * For example: + * + * add_filter( 'the_content', array( $plugin_name_public, 'display_the_content' ) ); + */ + + } + +} \ No newline at end of file