本文整理汇总了PHP中MS_Controller_Plugin::admin_page_hook方法的典型用法代码示例。如果您正苦于以下问题:PHP MS_Controller_Plugin::admin_page_hook方法的具体用法?PHP MS_Controller_Plugin::admin_page_hook怎么用?PHP MS_Controller_Plugin::admin_page_hook使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MS_Controller_Plugin
的用法示例。
在下文中一共展示了MS_Controller_Plugin::admin_page_hook方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admin_init
/**
* Initialize the admin-side functions.
*
* @since 1.0.0
*/
public function admin_init()
{
$hook = MS_Controller_Plugin::admin_page_hook('billing');
$this->run_action('load-' . $hook, 'admin_billing_manager');
$this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts');
$this->run_action('admin_print_styles-' . $hook, 'enqueue_styles');
}
示例2: admin_init
/**
* Initialize the admin-side functions.
*
* @since 1.0.0
*/
public function admin_init()
{
$hook = MS_Controller_Plugin::admin_page_hook('help');
$this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts');
}
示例3: admin_init
/**
* Initialize the admin-side functions.
*
* @since 1.0.0
*/
public function admin_init()
{
$hooks = array(MS_Controller_Plugin::admin_page_hook(), MS_Controller_Plugin::admin_page_hook('setup'));
foreach ($hooks as $hook) {
$this->run_action('load-' . $hook, 'process_admin_page');
$this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts');
$this->run_action('admin_print_styles-' . $hook, 'enqueue_styles');
if (self::TAB_EMAILS == $this->get_active_edit_tab()) {
$this->run_action('admin_head-' . $hook, array('MS_Controller_Communication', 'add_mce_buttons'));
}
}
}
示例4: admin_init
/**
* Initialize the admin-side functions.
*
* @since 1.0.0
*/
public function admin_init()
{
$hooks = array('list' => MS_Controller_Plugin::admin_page_hook('members'), 'editor' => MS_Controller_Plugin::admin_page_hook('add-member'));
foreach ($hooks as $key => $hook) {
$this->run_action('load-' . $hook, 'members_admin_page_process_' . $key);
$this->run_action('admin_print_scripts-' . $hook, 'enqueue_scripts_' . $key);
$this->run_action('admin_print_styles-' . $hook, 'enqueue_styles');
}
}