mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
defining the loader functionality to be used via dependency injection
This commit is contained in:
parent
a5864a9d96
commit
fc2b3109dd
1 changed files with 54 additions and 0 deletions
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @TODO
|
||||
* Define a short description for what this class does.
|
||||
*
|
||||
* @since x.x.x
|
||||
* @package TODO
|
||||
*/
|
||||
|
||||
/**
|
||||
* @TODO
|
||||
* Define a short description for what this class does.
|
||||
*
|
||||
* Define a longer description for the purpose of this class.
|
||||
*
|
||||
* @package TODO
|
||||
* @author Your Name <your@email.com>
|
||||
* @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' ) );
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue