WordPress.org
Showcase
Plugins
Themes
Hosting
News
Resources
Learn WordPress
Documentation
Education
Forums
Developers
Blocks
Patterns
Photos
Openverse
↗
︎
WordPress.tv
↗
︎
About
About WordPress
Make WordPress
Events
Five for the Future
Enterprise
Gutenberg
↗
︎
Job Board
↗
︎
Swag
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
WordPress Trac
Search:
Login
Notifications
Context Navigation
Back to Ticket #6621
Ticket #6621
: test.php
File test.php,
267 bytes
(added by
mattyrob
,
19 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
?>
Download in other formats:
Original Format