WordPress at a glance
function is not described

WP_Rewrite::get_extra_permastruct() public WP 2.5.0

Retrieves an extra permalink structure by name.

{} It's a method of the class: WP_Rewrite{}

No Hooks.

Return

String/false. Permalink structure string on success, false on failure.

Usage

global $wp_rewrite;
$wp_rewrite->get_extra_permastruct( $name );
$name(string) (required)
Permalink structure name.

Changelog

Since 2.5.0 Introduced.

Code of WP_Rewrite::get_extra_permastruct() WP 5.5.1

<?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;
}