WordPress add_pages_page() Function

The WordPress add_pages_page() is a WordPress builtin function and it will add submenu page to the Pages main menu.

This function takes a capability which will be used to determine whether or not a page is included in the menu. The function which is hooked in to handle the output of the page must check that the user has the required capability as well.


add_pages_page() function example:

Another example:

Source file: wp-admin/includes/plugin.php

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts: