plugins – Why is the y menu page not being displayed?

Hi i have created a custom plugin and i want to add a menu page but is not being displayed. I followed the documentation but it is not working.

class-training_csv_importer-admin.php:

public function register_menu()
    {
        $this->public_screen_hook_suffix = add_menu_page(
            __('CSV Post Importer', 'training-csv-importer'),
            __('CSV Post Importer', 'training-csv-importer'),
            'manage_options',
            'training-csv-display_options_page',
            [$this, 'display_options_page'],
            'dashicons-media-spreadsheet',
            3
        );
    }

Leave a Comment