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 Description

See also See also


Top ↑

Parameters Parameters

$network_wide

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


Top ↑

Return Return

(void)


Top ↑

Source Source

File: inventory-presser.php

		/**
		 * Filter callback that sets the number of meta keys in the Custom
		 * Fields panel in the editor. Typcially, this value is 30. We register
		 * more than 30 fields!
		 *
		 * @param  int $limit The number of meta keys in the Custom Fields panel in the editor.
		 * @return int
		 */
		public function custom_fields_key_limit( $limit ) {
			if ( INVP::POST_TYPE !== get_post_type() ) {
				return $limit;
			}
			return 9999;
		}

		/**
		 * Deletes the rewrite_rules option so the rewrite rules are generated