Inventory_Presser_Options::add_options_page()

add_options_page


Description Description

Adds an options page to the dashboard to hold all this plugin's settings.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-dealership-options.php

		{
			if( ! is_multisite() )
			{
				flush_rewrite_rules();
				return;
			}
	
			$sites = get_sites( array( 'network' => 1, 'limit' => 1000 ) );
			foreach( $sites as $site )
			{
				switch_to_blog( $site->blog_id );
				global $wp_rewrite;
				$wp_rewrite->init(); //important...
				$wp_rewrite->flush_rules();
				restore_current_blog();
			}
		}
	}

	/**
	 * register_javascript
	 *