WP_Rewrite::using_mod_rewrite_permalinks
Determines whether permalinks are being used and rewrite module is enabled.
Using permalinks and index.php is not in the URL.
Method of the class: WP_Rewrite{}
No Hooks.
Returns
true|false. Whether permalink links are enabled and index.php is NOT in the URL.
Usage
global $wp_rewrite; $wp_rewrite->using_mod_rewrite_permalinks();
Changelog
| Since 1.5.0 | Introduced. |
WP_Rewrite::using_mod_rewrite_permalinks() WP Rewrite::using mod rewrite permalinks code WP 7.0
public function using_mod_rewrite_permalinks() {
return $this->using_permalinks() && ! $this->using_index_permalinks();
}