Skip to content

Commit 58e75c7

Browse files
Updates
1 parent 87586a1 commit 58e75c7

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

plugin/manager/controller.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/**
4+
* Add my new menu to the Admin Control Panel
5+
*/
6+
7+
add_action('admin_menu', 'verbum_add_admin_menu');
8+
9+
function verbum_add_admin_menu ()
10+
{
11+
add_menu_page(
12+
'Example', // Title of the page.
13+
'Example', // Text to show on the menu link.
14+
'manage_options', // Capability requirement to see the link.
15+
'example', // The 'slug' - file to display when clicking the link.
16+
'process_manager_viewer',
17+
'dashicons-chart-pie',
18+
1
19+
);
20+
}
21+
22+
function process_manager_viewer ()
23+
{
24+
?>
25+
Iesus Salvator s2
26+
<?php
27+
}
28+
29+

plugin/plugin.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/*
4+
Plugin Name: Example
5+
Description: Example de plugin.
6+
Author: Melchisedech333
7+
*/
8+
9+
require_once plugin_dir_path(__FILE__) . 'manager/controller.php';
10+
11+

0 commit comments

Comments
 (0)