woocommerce_data_stores

woocommerce_data_stores

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_data_stores') is found 1 times:

  • /includes/class-wc-data-store.php line 82
    	 * @param string $object_type Name of object.
    	 */
    	public function __construct( $object_type ) {
    		$this->object_type = $object_type;
    		$this->stores      = apply_filters( 'woocommerce_data_stores', $this->stores );
    
    		// If this object type can't be found, check to see if we can load one
    		// level up (so if product-type isn't found, we try product).
    		if ( ! array_key_exists( $object_type, $this->stores ) ) {
    			$pieces      = explode( '-', $object_type );
    			$object_type = $pieces[0];
    

See this hook used in plugins: