WordPress at Your Fingertips
function is not described

WP_Rewrite::using_permalinks() public WP 1.5.0

Determines whether permalinks are being used.

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

{} It's a method of the class: WP_Rewrite{}

No Hooks.


true|false. True, if permalinks are enabled.


global $wp_rewrite;


Since 1.5.0 Introduced.

Code of WP_Rewrite::using_permalinks() WP 5.7.2

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