added custer menu for notice
This commit is contained in:
@@ -10,38 +10,34 @@ if (!defined('ABSPATH')) {
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* creates the plugin menu
|
||||
*
|
||||
*/
|
||||
function add_plugin_menu() {
|
||||
\Plgntls_custer::add_menu(__NAMESPACE__.'\menu_content');
|
||||
}
|
||||
add_action('admin_menu', __NAMESPACE__.'\add_plugin_menu');
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* the construction of the admin menu page
|
||||
*
|
||||
*/
|
||||
function custer_plugin_content() {
|
||||
function menu_content() {
|
||||
$option_notice_object = Custer::OPTION_NOTICE;
|
||||
|
||||
//delete_option($option_notice_object['_name']);
|
||||
$option_notice = \Plgntls_custer::get_option_safe($option_notice_object, true);
|
||||
|
||||
ob_start();
|
||||
include_once(plugin_dir_path(__FILE__) . '/admin_menu.html');
|
||||
include(\Plgntls_custer::root_path() . 'admin_menu.html');
|
||||
echo ob_get_clean();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* menu plugin
|
||||
*/
|
||||
function custer_plugin_menu() {
|
||||
$menu_page_title = 'custer';
|
||||
$menu_title = 'custer';
|
||||
$menu_capability = 'manage_options';
|
||||
$menu_slug = 'custer-plugin';
|
||||
$menu_callback = __NAMESPACE__.'\custer_plugin_content';
|
||||
|
||||
\CUSTER\toggle_menu($menu_page_title, $menu_title, $menu_capability, $menu_slug, $menu_callback);
|
||||
}
|
||||
add_action('admin_menu', __NAMESPACE__.'\custer_plugin_menu');
|
||||
|
||||
|
||||
//function update_payment_messages_option_CIPF($request, $option_name, $option_data, $option_default) {
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user