示例#1
0
文件: plugin.php 项目: grlf/eyedock
 function action_AdminPrintStyles()
 {
     if (strstr(am4_get_current_screen()->id, 'am4-settings') !== false) {
         wp_enqueue_style('jquery-style');
     }
     wp_enqueue_style('amember-style');
 }
示例#2
0
 function action_AdminFooter()
 {
     $screen = am4_get_current_screen();
     $post_types = get_post_types(array('public' => true));
     array_walk($post_types, create_function('&$a', '$a = "edit-".$a;'));
     if (in_array($screen->id, $post_types) && !$screen->action) {
         am4PluginsManager::runController('am4Protection_bulk');
     }
 }