A_Z_Listing_Grouping::heading( string $title )

Override the title of each group


Description


Parameters

$title

(string) (Required) The original title of the group.


Return

(string) The new title for the group.


Source

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

	public function heading( $title ) {
		if ( isset( $this->headings[ $title ] ) && is_array( $this->headings[ $title ] ) ) {
			$first = $this->headings[ $title ][0];
			$last  = $this->headings[ $title ][ count( $this->headings[ $title ] ) - 1 ];
			return $first . '-' . $last;
		}

		return $title;
	}

Changelog

Changelog
Version Description
2.0.0 Introduced.

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.