Files
2024_WEBSITE_fipf/plugins/custer/admin_menu.php
asus f987c2a316 - fixed error partner page draft redirection with post id
- fixed error all logged in user could see partner post in draft
2024-04-04 22:54:28 +02:00

51 lines
780 B
PHP

<?php
namespace CUSTER;
/*
* it means someone outside wp is accessing the file, in this case kill it.
*/
if (!defined('ABSPATH')) {
die('You can not access this file!');
}
/*
* the construction of the admin menu page
*
*/
function custer_plugin_content() {
ob_start();
include_once(plugin_dir_path(__FILE__) . '/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');
?>