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
|
|
|
/**
|
2014-05-03 22:06:38 +03:00
|
|
|
* Define a short description for what this class does (no period)
|
2014-05-01 05:34:19 +03:00
|
|
|
*
|
2014-05-03 22:06:38 +03:00
|
|
|
* @package Plugin_Name
|
|
|
|
* @subpackage Plugin_Name/admin
|
|
|
|
* @author Your Name <email@example.com>
|
|
|
|
* @license GPL-2.0+
|
|
|
|
* @link http://example.com
|
|
|
|
* @copyright 2014 Your Name or Company Name
|
|
|
|
* @since 1.0.0
|
2014-05-01 05:34:19 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define a short description for what this class does.
|
|
|
|
*
|
|
|
|
* Define a longer description for the purpose of this class.
|
|
|
|
*
|
2014-05-03 22:06:38 +03:00
|
|
|
* @package Plugin_Name
|
|
|
|
* @subpackage Plugin_Name/admin
|
|
|
|
* @author Your Name <email@example.com>
|
2014-05-01 05:34:19 +03:00
|
|
|
*/
|
|
|
|
class Plugin_Name_Admin_Loader {
|
|
|
|
|
2014-05-01 05:53:22 +03:00
|
|
|
/**
|
|
|
|
* Short description. (use period)
|
|
|
|
*
|
|
|
|
* Long description.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
2014-05-03 22:06:38 +03:00
|
|
|
* @param type $plugin_name_admin A reference to the Plugin_Name_Admin class that defines the functions for the hooks.
|
2014-05-01 05:53:22 +03:00
|
|
|
*/
|
2014-05-03 22:27:38 +03:00
|
|
|
public function run( Plugin_Name_Admin $plugin_name_admin ) {
|
2014-05-01 05:53:22 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
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
|
|
|
}
|
|
|
|
|
2014-05-03 22:06:38 +03:00
|
|
|
}
|