WC_Data_Store::has_callable()publicWC 1.0

Check if the data store we are working with has a callable method.

Method of the class: WC_Data_Store{}

No Hooks.

Return

true|false. Whether the passed method is callable.

Usage

$WC_Data_Store = new WC_Data_Store();
$WC_Data_Store->has_callable( $method ) : bool;
$method(string) (required)
Method name.

WC_Data_Store::has_callable() code WC 8.7.0

public function has_callable( string $method ) : bool {
	return is_callable( array( $this->instance, $method ) );
}