- added new plugin
- improved the plgntls class for this plugin
This commit is contained in:
42
plugins/xtxpatch/php/menu/admin_menu.php
Normal file
42
plugins/xtxpatch/php/menu/admin_menu.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
namespace XTXPATCH;
|
||||
|
||||
/*
|
||||
* it means someone outside wp is accessing the file, in this case kill it.
|
||||
*/
|
||||
if (!defined('ABSPATH')) {
|
||||
die('You can not access this file!');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* creates the plugin menu
|
||||
*
|
||||
*/
|
||||
\Plgntls_xtx::add_menu(__NAMESPACE__.'\menu_content');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* the construction of the admin menu page
|
||||
*
|
||||
*/
|
||||
function menu_content() {
|
||||
echo '<p>hello</p>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user