I want to add a page of content (a readme file) in the WordPress admin, I can’t seem to find how to do this in the codex – can anyone point me in the right direction? It will literally just be a simple page with a few paragraphs of content.
Leave a Reply
You must be logged in to post a comment.
You need just two steps:
admin_menu
, register the page with a callback function to print the content.plugin_dir_path( __FILE__ ) . "included.html"
.Demo code:
I added an example to my demo plugin T5 Admin Menu Demo to show how to do this in a sub menu and in a OOP style.