WP_Rewrite::using_permalinks

Advertisement

Summery Summery

Determines whether permalinks are being used.

Syntax Syntax

WP_Rewrite::using_permalinks()

Description Description

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

Return Return

(bool) True, if permalinks are enabled.

Source Source

File: wp-includes/class-wp-rewrite.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply