WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Rewrite::using_index_permalinks() public WP 1.5.0

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

Means that permalink links are enabled and index.php is in the URL.

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

Хуков нет.

Возвращает

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

Использование

$WP_Rewrite = new WP_Rewrite();
$WP_Rewrite->using_index_permalinks();

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

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

Код WP_Rewrite::using_index_permalinks() WP 5.5.1

wp-includes/class-wp-rewrite.php
<?php
public function using_index_permalinks() {
	if ( empty( $this->permalink_structure ) ) {
		return false;
	}

	// If the index is not in the permalink, we're using mod_rewrite.
	return preg_match( '#^/*' . $this->index . '#', $this->permalink_structure );
}