Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! class_exists( 'WP_List_Table' ) )
- require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' )
- .if ( ! class_exists( 'WP_List_Table' ) ) {
- /**
- * List table class for handling plugins.
- *
- * Extends the WP_List_Table class to provide a future-compatible
- * way of listing out all required/recommended plugins.
- *
- * Gives users an interface similar to the Plugin Administration
- * area with similar (albeit stripped down) capabilities.
- *
- * This class also allows for the bulk install of plugins.
- *
- * @since 2.2.0
- *
- * @package TGM-Plugin-Activation
- * @author Thomas Griffin <thomas@thomasgriffinmedia.com>
- * @author Gary Jones <gamajo@gamajo.com>
- */
- class TGMPA_List_Table extends WP_List_Table {
- /**
- * References parent constructor and sets defaults for class.
- *
- * The constructor also grabs a copy of $instance from the TGMPA class
- * and stores it in the global object TGM_Plugin_Activation::$instance.
- *
- * @since 2.2.0
- *
- * @global unknown $status
- * @global string $page
- */
- public function __construct() {
- global $status, $page;
- parent::__construct(
- array(
- 'singular' => 'plugin',
- 'plural' => 'plugins',
- 'ajax' => false,
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement