WP_Rewrite::using_mod_rewrite_permalinks

Advertisement

Summery Summery

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

Syntax Syntax

WP_Rewrite::using_mod_rewrite_permalinks()

Description Description

Using permalinks and index.php is not in the URL.

Return Return

(bool) Whether permalink links are enabled and index.php is NOT in the URL.

Source Source

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

	public function using_mod_rewrite_permalinks() {
		return $this->using_permalinks() && ! $this->using_index_permalinks();
	}

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply