Determines whether permalinks are being used and rewrite module is enabled.
Using permalinks and index.php is not in the URL.
Returns true your blog is using “pretty” permalinks via mod_rewrite.
public function using_mod_rewrite_permalinks() {
return $this->using_permalinks() && ! $this->using_index_permalinks();
}
| 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_mod_rewrite_permalinks