src/WPametu/Utility/StringHelper.php
public function get_taxonomy_label( $singular_name, $multiple_name = '', $hierarchical = false, $as_object = false ) {
		if ( ! $multiple_name ) {
			$multiple_name = $singular_name;
		}
		$labels = [
			'name'                       => $multiple_name,
			'singular_name'              => $singular_name,
			'search_items'               => sprintf( $this->__( 'Search %s' ), $singular_name ),
			'popular_items'              => sprintf( $this->__( 'Popular %s' ), $multiple_name ),
			'all_items'                  => sprintf( $this->__( 'All %s' ), $multiple_name ),
			'parent_item'                => $hierarchical ? sprintf( $this->__( 'Parent %s' ), $singular_name ) : null,
			'parent_item_colon'          => $hierarchical ? sprintf( $this->__( 'Parent %s:' ), $singular_name ) : null,
			'edit_item'                  => sprintf( $this->__( 'Edit %s' ), $singular_name ),
			'update_item'                => sprintf( $this->__( 'Update %s' ), $singular_name ),
			'add_new_item'               => sprintf( $this->__( 'Add New %s' ), $singular_name ),
			'new_item_name'              => sprintf( $this->__( 'New %s Name' ), $singular_name ),
			'separate_items_with_commas' => sprintf( $this->__( 'Separate %s with commas' ), $multiple_name ),
			'add_or_remove_items'        => sprintf( $this->__( 'Add or remove %s' ), $multiple_name ),
			'choose_from_most_used'      => sprintf( $this->__( 'Choose from the most used %s' ), $multiple_name ),
			'not_found'                  => sprintf( $this->__( 'No %s found.' ), $multiple_name ),
			'menu_name'                  => $multiple_name,
		];

		return $as_object ? (object) $labels : $labels;
	}
public function get_taxonomy_label( $singular_name, $multiple_name = '', $hierarchical = false, $as_object = false ) {
		if ( ! $multiple_name ) {
			$multiple_name = $singular_name;
		}
		$labels = [
			'name'                       => $multiple_name,
			'singular_name'              => $singular_name,
			'search_items'               => sprintf( $this->__( 'Search %s' ), $singular_name ),
			'popular_items'              => sprintf( $this->__( 'Popular %s' ), $multiple_name ),
			'all_items'                  => sprintf( $this->__( 'All %s' ), $multiple_name ),
			'parent_item'                => $hierarchical ? sprintf( $this->__( 'Parent %s' ), $singular_name ) : null,
			'parent_item_colon'          => $hierarchical ? sprintf( $this->__( 'Parent %s:' ), $singular_name ) : null,
			'edit_item'                  => sprintf( $this->__( 'Edit %s' ), $singular_name ),
			'update_item'                => sprintf( $this->__( 'Update %s' ), $singular_name ),
			'add_new_item'               => sprintf( $this->__( 'Add New %s' ), $singular_name ),
			'new_item_name'              => sprintf( $this->__( 'New %s Name' ), $singular_name ),
			'separate_items_with_commas' => sprintf( $this->__( 'Separate %s with commas' ), $multiple_name ),
			'add_or_remove_items'        => sprintf( $this->__( 'Add or remove %s' ), $multiple_name ),
			'choose_from_most_used'      => sprintf( $this->__( 'Choose from the most used %s' ), $multiple_name ),
			'not_found'                  => sprintf( $this->__( 'No %s found.' ), $multiple_name ),
			'menu_name'                  => $multiple_name,
		];

		return $as_object ? (object) $labels : $labels;
	}
public function get_taxonomy_label ( $ singular_name , $ multiple_name = '' , $ hierarchical = false , $ as_object = false ) { if ( ! $ multiple_name ) { $ multiple_name = $ singular_name ; } $ labels = [ 'name' => $ multiple_name , 'singular_name' => $ singular_name , 'search_items' => sprintf ( $ this -> __ ( 'Search %s' ) , $ singular_name ) , 'popular_items' => sprintf ( $ this -> __ ( 'Popular %s' ) , $ multiple_name ) , 'all_items' => sprintf ( $ this -> __ ( 'All %s' ) , $ multiple_name ) , 'parent_item' => $ hierarchical ? sprintf ( $ this -> __ ( 'Parent %s' ) , $ singular_name ) : null , 'parent_item_colon' => $ hierarchical ? sprintf ( $ this -> __ ( 'Parent %s:' ) , $ singular_name ) : null , 'edit_item' => sprintf ( $ this -> __ ( 'Edit %s' ) , $ singular_name ) , 'update_item' => sprintf ( $ this -> __ ( 'Update %s' ) , $ singular_name ) , 'add_new_item' => sprintf ( $ this -> __ ( 'Add New %s' ) , $ singular_name ) , 'new_item_name' => sprintf ( $ this -> __ ( 'New %s Name' ) , $ singular_name ) , 'separate_items_with_commas' => sprintf ( $ this -> __ ( 'Separate %s with commas' ) , $ multiple_name ) , 'add_or_remove_items' => sprintf ( $ this -> __ ( 'Add or remove %s' ) , $ multiple_name ) , 'choose_from_most_used' => sprintf ( $ this -> __ ( 'Choose from the most used %s' ) , $ multiple_name ) , 'not_found' => sprintf ( $ this -> __ ( 'No %s found.' ) , $ multiple_name ) , 'menu_name' => $ multiple_name , ] ; return $ as_object ? ( object ) $ labels : $ labels ; }
Returns taxonomy label shorthand.

@param string $singular_name
@param string $multiple_name If empty, singular_name will be used.
@param bool $hierarchical Default false.
@param bool $as_object Default false. If true, returns as Object

@return array|\stdClass
Returns taxonomy label shorthand .