WP_MS_Sites_List_Table::__construct() – Constructor.

You appear to be a bot. Output may be restricted

Description

Constructor.

Usage

WP_MS_Sites_List_Table::__construct( $args );

Parameters

$args
( array ) optional – An associative array of arguments.

Returns

void

Source

File name: wordpress/wp-admin/includes/class-wp-ms-sites-list-table.php
Lines:

1 to 15 of 15
  public function __construct( $args = array() ) {
    $this->status_list = array(
      'archived' => array( 'site-archived', __( 'Archived' ) ),
      'spam'     => array( 'site-spammed', _x( 'Spam', 'site' ) ),
      'deleted'  => array( 'site-deleted', __( 'Deleted' ) ),
      'mature'   => array( 'site-mature', __( 'Mature' ) ),
    );

    parent::__construct(
      array(
        'plural' => 'sites',
        'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
      )
    );
  }
 

 View on GitHub View on Trac