WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Education
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
Swag Store
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #6621
Ticket #6621
: test.php
File test.php,
267 bytes
(added by
mattyrob
,
18 years ago
)
Line
1
<?php
2
/*
3
Plugin Name: add_users_page test
4
Version: 1.0
5
Author: MattyRob
6
*/
7
8
function
admin_menu
()
{
9
add_users_page
(
'My Title'
,
'My Title'
,
"read"
,
__FILE__
,
'user_menu'
);
10
}
11
12
function
user_menu
()
{
13
echo
"Some Test Here"
;
14
}
15
16
add_action
(
'admin_menu'
,
'admin_menu'
);
17
?>
Trac UI Preferences
Download in other formats:
Original Format