DB::maybe_flush_rewrite_rules()

Flushes rewrite rules if necessary.

Description

This ensures the post type and taxonomy rewrites work properly.

See also

Source

File: src/db.php

	protected function maybe_flush_rewrite_rules() {
		if ( $this->options()->get( 'rewrite_rules', false ) ) {
			return;
		}

		flush_rewrite_rules();

		$this->options()->update( 'rewrite_rules', true );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.