WP_Rewrite::using_permalinks()publicWP 1.5.0

Determines whether permalinks are being used.

This can be either rewrite module or permalink in the HTTP query string.

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

Хуков нет.


true|false. True, if permalinks are enabled.


global $wp_rewrite;

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

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

Код WP_Rewrite::using_permalinks() WP 6.2.2

public function using_permalinks() {
	return ! empty( $this->permalink_structure );