/** * Constructor. Calls WP_List_Table and set up data. * * @since 1.0 */ function __construct() { if (!is_admin()) { return false; } global $status, $page; parent::__construct(array('singular' => 'movie', 'plural' => 'movies', 'ajax' => true, 'screen' => get_current_screen())); $this->posts_per_page = 15; $this->metadata = WPMOLY_Settings::get_supported_movie_meta(); $this->columns = WPMOLY_Import::get_imported_movies(); $this->column_names = array('poster' => __('Poster', 'wpmovielibrary'), 'movietitle' => __('Title', 'wpmovielibrary'), 'director' => __('Director', 'wpmovielibrary'), 'actions' => __('Actions', 'wpmovielibrary')); }