How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:wampwww…….wp-includesclass-wp-hook.php on line 286

I am creating WordPress Dashboard Menu:
add_action(‘admin_menu’, ‘personalised_menu’);
function personalised_menu()
{
add_menu_page( ‘Page Title’, ‘Blog’, ‘edit_posts’, ‘menu_slug’, ‘call_user_func_array’, ‘dashicons-welcome-write-blog’ );
add_submenu_page( ‘menu_slug’, ‘Add New Page’, ‘Add New’, ‘edit_posts’, ‘add_new_page’, ‘call_user_func_array’ );
}

Read more here:: How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:wampwww…….wp-includesclass-wp-hook.php on line 286

Leave a Reply

Your email address will not be published. Required fields are marked *