Inventory_Presser_Plugin::delete_rewrite_rules_option( bool $network_wide )

Deletes the rewrite_rules option so the rewrite rules are generated on the next page load without ours. Called during deactivation.


Description

See also


Parameters

$network_wide

(bool) (Required) True if this plugin is being Network Activated or Network Deactivated by the multisite admin.


Return

(void)


Source

File: inventory-presser.php

			$args['hierarchical'] = true;
			return $args;
		}

		/**
		 * Flushes rewrite rules.
		 *
		 * @param  boolean $network_wide True if this plugin is being Network Activated or Network Deactivated by the multisite admin.
		 * @return void
		 */
		public static function flush_rewrite( $network_wide ) {
			self::create_post_type();

			if ( ! is_multisite() || ! $network_wide ) {
				flush_rewrite_rules();
				return;
			}