@@ -87838,6 +87838,7 @@ function uninstall_plugin($plugin)
87838
87838
* * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS.
87839
87839
* @param int|float $position Optional. The position in the menu order this item should appear.
87840
87840
* @return string The resulting page's hook_suffix.
87841
+ * @phpstan-param ''|callable $callback
87841
87842
*/
87842
87843
function add_menu_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $icon_url = '', $position = \null)
87843
87844
{
@@ -87897,6 +87898,7 @@ function add_submenu_page($parent_slug, $page_title, $menu_title, $capability, $
87897
87898
* @param callable $callback Optional. The function to be called to output the content for this page.
87898
87899
* @param int $position Optional. The position in the menu order this item should appear.
87899
87900
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
87901
+ * @phpstan-param ''|callable $callback
87900
87902
*/
87901
87903
function add_management_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
87902
87904
{
@@ -87920,6 +87922,7 @@ function add_management_page($page_title, $menu_title, $capability, $menu_slug,
87920
87922
* @param callable $callback Optional. The function to be called to output the content for this page.
87921
87923
* @param int $position Optional. The position in the menu order this item should appear.
87922
87924
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
87925
+ * @phpstan-param ''|callable $callback
87923
87926
*/
87924
87927
function add_options_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
87925
87928
{
@@ -87943,6 +87946,7 @@ function add_options_page($page_title, $menu_title, $capability, $menu_slug, $ca
87943
87946
* @param callable $callback Optional. The function to be called to output the content for this page.
87944
87947
* @param int $position Optional. The position in the menu order this item should appear.
87945
87948
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
87949
+ * @phpstan-param ''|callable $callback
87946
87950
*/
87947
87951
function add_theme_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
87948
87952
{
@@ -87966,6 +87970,7 @@ function add_theme_page($page_title, $menu_title, $capability, $menu_slug, $call
87966
87970
* @param callable $callback Optional. The function to be called to output the content for this page.
87967
87971
* @param int $position Optional. The position in the menu order this item should appear.
87968
87972
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
87973
+ * @phpstan-param ''|callable $callback
87969
87974
*/
87970
87975
function add_plugins_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
87971
87976
{
@@ -87989,6 +87994,7 @@ function add_plugins_page($page_title, $menu_title, $capability, $menu_slug, $ca
87989
87994
* @param callable $callback Optional. The function to be called to output the content for this page.
87990
87995
* @param int $position Optional. The position in the menu order this item should appear.
87991
87996
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
87997
+ * @phpstan-param ''|callable $callback
87992
87998
*/
87993
87999
function add_users_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
87994
88000
{
@@ -88012,6 +88018,7 @@ function add_users_page($page_title, $menu_title, $capability, $menu_slug, $call
88012
88018
* @param callable $callback Optional. The function to be called to output the content for this page.
88013
88019
* @param int $position Optional. The position in the menu order this item should appear.
88014
88020
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
88021
+ * @phpstan-param ''|callable $callback
88015
88022
*/
88016
88023
function add_dashboard_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
88017
88024
{
@@ -88035,6 +88042,7 @@ function add_dashboard_page($page_title, $menu_title, $capability, $menu_slug, $
88035
88042
* @param callable $callback Optional. The function to be called to output the content for this page.
88036
88043
* @param int $position Optional. The position in the menu order this item should appear.
88037
88044
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
88045
+ * @phpstan-param ''|callable $callback
88038
88046
*/
88039
88047
function add_posts_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
88040
88048
{
@@ -88058,6 +88066,7 @@ function add_posts_page($page_title, $menu_title, $capability, $menu_slug, $call
88058
88066
* @param callable $callback Optional. The function to be called to output the content for this page.
88059
88067
* @param int $position Optional. The position in the menu order this item should appear.
88060
88068
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
88069
+ * @phpstan-param ''|callable $callback
88061
88070
*/
88062
88071
function add_media_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
88063
88072
{
@@ -88081,6 +88090,7 @@ function add_media_page($page_title, $menu_title, $capability, $menu_slug, $call
88081
88090
* @param callable $callback Optional. The function to be called to output the content for this page.
88082
88091
* @param int $position Optional. The position in the menu order this item should appear.
88083
88092
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
88093
+ * @phpstan-param ''|callable $callback
88084
88094
*/
88085
88095
function add_links_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
88086
88096
{
@@ -88104,6 +88114,7 @@ function add_links_page($page_title, $menu_title, $capability, $menu_slug, $call
88104
88114
* @param callable $callback Optional. The function to be called to output the content for this page.
88105
88115
* @param int $position Optional. The position in the menu order this item should appear.
88106
88116
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
88117
+ * @phpstan-param ''|callable $callback
88107
88118
*/
88108
88119
function add_pages_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
88109
88120
{
@@ -88127,6 +88138,7 @@ function add_pages_page($page_title, $menu_title, $capability, $menu_slug, $call
88127
88138
* @param callable $callback Optional. The function to be called to output the content for this page.
88128
88139
* @param int $position Optional. The position in the menu order this item should appear.
88129
88140
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
88141
+ * @phpstan-param ''|callable $callback
88130
88142
*/
88131
88143
function add_comments_page($page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = \null)
88132
88144
{
0 commit comments