• wp-list-table works fine in admin

    When i try to instantiate the same object (and prepare/display data) outside admin from a plugin shortcode in a front end page, it fails.

    When I turn on debug messages , it says

    Fatal error: Call to undefined function convert_to_screen() in /home/sites/twsdev.co.uk/public_html/jobs/wp-content/plugins/jobs/class-wp-list-table.php on line 143

    what changes should i make outside admin?

  • The topic ‘wp-list-table outside admin’ is closed to new replies.