wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



flush_rewrite_rules › WordPress Function

Da3.0.0
Deprecaton/a
flush_rewrite_rules ( $hard = true )
Parametri:
  • (bool) $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard).
    Richiesto: No
    Default: true
Definito a:
Codex:

Removes rewrite rules and then recreate rewrite rules.



Sorgenti

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

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