WP_MS_Themes_List_Table::_order_callback

Advertisement

Syntax Syntax

WP_MS_Themes_List_Table::_order_callback( array $theme_a, array $theme_b )

Parameters Parameters

$theme_a

(Required)

$theme_b

(Required)

Return Return

(int)

Source Source

File: wp-admin/includes/class-wp-ms-themes-list-table.php

			array(
				'themes' => $totals,
				'totals' => wp_get_update_data(),
			)
		);

		if ( $orderby ) {
			$orderby = ucfirst( $orderby );
			$order   = strtoupper( $order );

			if ( 'Name' === $orderby ) {
				if ( 'ASC' === $order ) {
					$this->items = array_reverse( $this->items );
				}
			} else {
				uasort( $this->items, array( $this, '_order_callback' ) );

Advertisement

Advertisement

Leave a Reply