How do I insert a require
into this Wordpress function for admin menu?
add_action('admin_menu', function() {
# $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '', $position = null
add_menu_page (
'Gerência de dados',
'Gerência',
'manage_options',
'gerencia_de_dados',
function(){
echo '<h2>Sistema de gerenciamento de traduções</h2>';
echo '<form><input type="text"></form>';
},
'dashicons-welcome-learn-more',
6
);
});
The current result for learning purposes is this: