I’m studying WordPress Plugin improvement. I wish to add a Admin Menu to Create a New Publish like beneath.
My code is like beneath.
public operate admin_menu() {
add_menu_page( 'Information Info', 'Information Information', 'manage_options', 'news_info', [$this, 'api_key_page'], 'dashicons-info-outline', 30 );
add_submenu_page( 'news_info', 'Information Info', 'API Key', 'manage_options', 'news_info_page', [$this, 'api_key_page'], 0 );
add_submenu_page( 'news_info', 'Information Info', 'Add Information', 'manage_options', 'news_info', 'call_back_function', 1 );
}
What ought to I put inside call_back_function
? Is it the correct approach to create Admin Menu ?