WP_Rewrite::get_extra_permastruct( string $name )

Retrieves an extra permalink structure by name.


Parameters Parameters

$name

(string) (Required) Permalink structure name.


Top ↑

Return Return

(string|false) Permalink structure string on success, false on failure.


Top ↑

Source Source

File: wp-includes/class-wp-rewrite.php

	public function get_extra_permastruct( $name ) {
		if ( empty( $this->permalink_structure ) ) {
			return false;
		}

		if ( isset( $this->extra_permastructs[ $name ] ) ) {
			return $this->extra_permastructs[ $name ]['struct'];
		}

		return false;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.