Home / Admin / Hide “Everywhere Else” on the countries dropdown
Duplicate Snippet

Embed Snippet on Your Site

Hide “Everywhere Else” on the countries dropdown

Code Preview
php
<?php
if ( ! function_exists( 'wcv_hide_everywhere_else' ) ) {
	/**
	 * Hide the "Everywhere else" option in the countries dropdown.
	 *
	 * @param  array $regions Array of countries.
	 */
	function wcv_hide_everywhere_else( $regions ) {
		unset( $regions['EWE'] );
		return $regions;
	}
	add_filter( 'wcvendors_shipping_table_regions', 'wcv_hide_everywhere_else', 10, 1 );
}

Comments

Add a Comment