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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: