2014-05-01 05:34:19 +03:00
|
|
|
<?php
|
2014-05-01 05:53:22 +03:00
|
|
|
|
2014-05-01 05:34:19 +03:00
|
|
|
/**
|
|
|
|
* Define a short description for what this class does.
|
|
|
|
*
|
|
|
|
* @since x.x.x
|
|
|
|
* @package 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_Admin_Loader {
|
|
|
|
|
2014-05-01 05:53:22 +03:00
|
|
|
/**
|
|
|
|
* Short description. (use period)
|
|
|
|
*
|
|
|
|
* Long description.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
|
|
|
* @link URL
|
|
|
|
* @param type $plugin_name_admin TODO
|
|
|
|
*/
|
|
|
|
public function run( $plugin_name_admin ) {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This function is used to define the various hooks that are used in the
|
|
|
|
* dashboard-specific side of the plugin. This is achieved via dependency injection
|
|
|
|
* by passing an instance of Plugin_Name_Admin into this class.
|
|
|
|
*
|
|
|
|
* Each hook then corresponds to a public function defined within the Plugin_Name_Admin
|
|
|
|
* class.
|
|
|
|
*
|
|
|
|
* For example:
|
|
|
|
*
|
|
|
|
* add_action( 'save_post' array( $plugin_name_admin, 'save_post' ) );
|
|
|
|
* add_filter( 'the_content', array( $plugin_name_admin, 'update_the_content' ) );
|
|
|
|
*/
|
2014-05-01 05:34:19 +03:00
|
|
|
|
2014-05-02 06:42:46 +03:00
|
|
|
add_action( 'admin_enqueue_scripts', array( $plugin_name_admin, 'enqueue_styles' ) );
|
|
|
|
add_action( 'admin_enqueue_scripts', array( $plugin_name_admin, 'enqueue_scripts' ) );
|
|
|
|
|
2014-05-01 05:34:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|