Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_menu_page('User Contacts', 'User Contacts','manage_options', 'user-contacts','my_plugin_options');
- function my_plugin_options() {
- if ( !current_user_can( 'manage_options' ) ) {
- wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
- }
- require_once(plugin_dir_path( __FILE__ ).'user-info.php');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement