wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



flush_rewrite_rules › WordPress Function

Seit3.0.0
Veraltetn/v
flush_rewrite_rules ( $hard = true )
Parameter:
  • (bool) $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard).
    Erforderlich: Nein
    Standard: true
Definiert in:
Codex:

Removes rewrite rules and then recreate rewrite rules.



Quellcode

function flush_rewrite_rules( $hard = true ) {
	global $wp_rewrite;

	if ( is_callable( array( $wp_rewrite, 'flush_rules' ) ) ) {
		$wp_rewrite->flush_rules( $hard );
	}
}