Determines whether permalinks are being used.
This can be either rewrite module or permalink in the HTTP query string.
Returns true if your blog is using any permalink structure (i.e. not the default query URIs ?p=n, ?cat=n).
public function using_permalinks() {
return ! empty( $this->permalink_structure );
}
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rewrite/using_permalinks