flush_rewrite_rules

Definition:
function flush_rewrite_rules( $hard = true ) {}

Remove rewrite rules and then recreate rewrite rules.

Parameters

  • bool $hard: Whether to update .htaccess (hard flush) or just update rewrite_rules transient (soft flush). Default is true (hard).

Source code

function flush_rewrite_rules( $hard = true ) {

	global $wp_rewrite;

	$wp_rewrite->flush_rules( $hard );

}

1080

No comments yet... Be the first to leave a reply!

Leave a comment