WP_Rewrite::using_permalinks()
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; $wp_rewrite->using_permalinks();
Список изменений
С версии 1.5.0 | Введена. |
Код WP_Rewrite::using_permalinks() WP Rewrite::using permalinks WP 6.6.2
public function using_permalinks() { return ! empty( $this->permalink_structure ); }