WC_Shipping_Rate::__isset()publicWC 3.2.0

Magic methods to support direct access to props.

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

No Hooks.

Return

true|false.

Usage

$WC_Shipping_Rate = new WC_Shipping_Rate();
$WC_Shipping_Rate->__isset( $key );
$key(string) (required)
Key.

Changelog

Since 3.2.0 Introduced.

Code of WC_Shipping_Rate::__isset() WC 6.7.0

public function __isset( $key ) {
	if ( 'meta_data' === $key ) {
		wc_doing_it_wrong( __FUNCTION__, __( 'Use `array_key_exists` to check for meta_data on WC_Shipping_Rate to get the correct result.', 'woocommerce' ), '6.0' );
	}
	return isset( $this->data[ $key ] );
}