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

(array) (Required)

$theme_b

(array) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.