WP_Rewrite::get_extra_permastruct( string $name )
Retrieves an extra permalink structure by name.
Description Description
Parameters Parameters
- $name
-
(string) (Required) Permalink structure name.
Return Return
(string|false) False if not found. Permalink structure string.
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; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |