A_Z_Listing::get_all_indices( array $items = null )

Sort the letters to be used as indices and return as an Array


Description


Parameters

$items

(array) (Optional) The items to index.

Default value: null


Return

(array) The index letters


Source

File: classes/class-a-z-listing.php

	protected function get_all_indices() {
		$indexed_items = $this->get_indexed_items();

		if ( ! empty( $index[ self::$unknown_letters ] ) ) {
			$this->available_indices[] = self::$unknown_letters;
		}

		foreach ( $this->available_indices as $index ) {
			if ( ! empty( $indexed_items[ $index ] ) ) {
				usort( $indexed_items[ $index ], function( $a, $b ) {
					return strcasecmp( $a['title'], $b['title'] );
				});
			}
		}

		return $indexed_items;
	}

Changelog

Changelog
VersionDescription
0.1Introduced.

More Information

You are currently logged out. To view tickets you must first login.

I have read and understood the Terms of Service



User Contributed Notes

Leave a Reply

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