_dealer_settings::dealership_options_create_admin_page()


Source

File: includes/class-dealership-options.php

	 * @param  mixed $old_value
	 * @param  mixed $value
	 * @return void
	 */
	public function maybe_flush_permalinks( $old_value, $value )
	{
		//Did the additional listings pages settings change?
		if ( ( ! isset( $old_value['additional_listings_pages'] ) && isset( $value['additional_listings_pages'] ) )
			|| ( isset( $old_value['additional_listings_pages'] ) && ! isset( $value['additional_listings_pages'] ) )
			|| ( isset( $old_value['additional_listings_pages'] ) && isset( $value['additional_listings_pages'] ) && $old_value['additional_listings_pages'] !== $value['additional_listings_pages'] ) )
		{
			if( ! is_multisite() )
			{
				flush_rewrite_rules();
				return;
			}