Im making a custom plugin for wordpress and i need to create a page in the admin menu. I already have a file called mailing_list.php with the following code:

function jps_mail_list_page_entry() {
    __('JPS Mailing List'),
    'JPS Mailing List',
add_action('admin_menu', 'jps_mail_list_page_entry');

function jpsNews_mailing_list() {
    echo 'hello';

Now, in the plugin page i have this:

function jpsNews_activate_plugin() {

Its not working so, is it even possible to do it like this? how can i do it?

thanks in advance.

Read more here: WordPress adding a menu page when activating a plugin


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: