View on website:
https://scottsweb.dev/how-to-add-a-me...
In this video, I show you how to create a new menu page in the WordPress admin area.
This will create a new menu item on the left hand side menu when you log into the backend.
Place this code in functions.php (of a child theme if your theme can be updated) or another globally accessible file.
If you're editing someone elses theme please see my video about creating a child theme:
• How (and why) to create a child theme in W...
The code: (copy from website as I can't put angled brackets here or replace [ with less than sign and ] with greater than sign):
add_menu_page(
'Say Hello',
'Say Hello',
'read',
'say-hello',
'do_say_hello',
'dashicons-format-chat',
999
);
function do_say_hello() {
?]
[div class="wrap"]
[h]Say Hello[/h1]
[p]I just wanted to say hello to you on your new admin page![/p]
[/div]
[?php
}
コメント