WC_Data_Store::has_callable()
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() WC Data Store::has callable code WC 9.7.1
public function has_callable( string $method ) : bool { return is_callable( array( $this->instance, $method ) ); }