WP_Rewrite::using_mod_rewrite_permalinks()publicWP 1.5.0

Determines whether permalinks are being used and rewrite module is enabled.

Using permalinks and index.php is not in the URL.

Метод класса: WP_Rewrite{}

Хуков нет.


true|false. Whether permalink links are enabled and index.php is NOT in the URL.


global $wp_rewrite;

Список изменений

С версии 1.5.0 Введена.

Код WP_Rewrite::using_mod_rewrite_permalinks() WP 6.2.2

public function using_mod_rewrite_permalinks() {
	return $this->using_permalinks() && ! $this->using_index_permalinks();