Пример #1
0
function se_global_notice()
{
    global $pagenow, $se_global_notice_pages;
    if (!current_user_can('manage_options')) {
        return;
    }
    $se_meta = se_get_meta();
    $close_url = admin_url('options-general.php');
    $close_url = add_query_arg(array('page' => 'extend_search', 'se_global_notice' => 0), $close_url);
    $notice = $se_meta['se_global_notice'];
    if ($notice && in_array($pagenow, $se_global_notice_pages)) {
        include se_get_view('global_notice');
    }
}
Пример #2
0
 function se_options_page_notice()
 {
     $screen = get_current_screen();
     if ('settings_page_extend_search' == $screen->id) {
         $close_url = admin_url($screen->parent_file);
         $close_url = add_query_arg(array('page' => 'extend_search', 'se_notice' => 0), $close_url);
         include se_get_view('options_page_notice');
     }
 }