WP_Rewrite::using_permalinks(): bool
Determines whether permalinks are being used.
Description
This can be either rewrite module or permalink in the HTTP query string.
Return
bool True, if permalinks are enabled.
More Information
Returns true if your blog is using any permalink structure (i.e. not the default query URIs ?p=n, ?cat=n).
Source
File: wp-includes/class-wp-rewrite.php
.
View all references
public function using_permalinks() {
return ! empty( $this->permalink_structure );
}
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |