WC_Countries::get_base_postcode()publicWC 3.1.1

Get the base postcode for the store.

{} It's a method of the class: WC_Countries{}

Hooks from the method

Return

String.

Usage

$WC_Countries = new WC_Countries();
$WC_Countries->get_base_postcode();

Changelog

Since 3.1.1 Introduced.

Code of WC_Countries::get_base_postcode() WC 6.7.0

public function get_base_postcode() {
	$base_postcode = get_option( 'woocommerce_store_postcode', '' );
	return apply_filters( 'woocommerce_countries_base_postcode', $base_postcode );
}