woocommerce_states

woocommerce_states

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_states') is found 2 times:

  • /includes/class-wc-countries.php line 192
    		 * @since 1.5.3
    		 *
    		 * @param array $states
    		 */
    		$this->geo_cache['states'] = apply_filters( 'woocommerce_states', $states );
    	}
    
    	/**
    	 * Get the states for a country.
    	 *
    	 * @param  string $cc Country code.
    
  • /includes/class-wc-countries.php line 210
    			 * @since 1.5.3
    			 *
    			 * @param array $states
    			 */
    			$this->geo_cache['states'] = apply_filters( 'woocommerce_states', include WC()->plugin_path() . '/i18n/states.php' );
    		}
    
    		if ( ! is_null( $cc ) ) {
    			return isset( $this->geo_cache['states'][ $cc ] ) ? $this->geo_cache['states'][ $cc ] : false;
    		} else {
    			return $this->geo_cache['states'];