示例#1
0
function wpmmp_settings_part($view_name, $is_php = true)
{
    return wpmmp_view_path('admin-settings/' . $view_name, $is_php);
}
 function plugin_activation_notice()
 {
     if (get_option('wpmmp-activation-notice')) {
         return FALSE;
     }
     if (isset($_REQUEST['page'])) {
         if ($_REQUEST['page'] == 'wpmmp-settings') {
             add_option('wpmmp-activation-notice', 'showed', '', 'yes');
             return FALSE;
         }
     }
     $settings_link = admin_url('options-general.php?page=wpmmp-settings');
     include wpmmp_view_path('admin-settings/plugin_actiavtion_notice');
 }