Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_help_menu() {
- add_menu_page(
- 'Admin Help', // имя в меню
- 'Admin Help Page', // title страницы
- 'manage_options', // уровень доступа
- 'admin_help', // slug страницы
- 'render_help_page', // функция, отображающая собственно страницу
- 'dashicons-editor-help', // иконка
- '10' // позиция в меню
- );
- }
- add_action('admin_menu', 'add_help_menu');
- function render_help_page() {
- echo '<p>hello world!</p>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement