woocommerce_product_source
woocommerce_product_source
Appears in: woocommerce.7.9.0, woocommerce.8.0.3, woocommerce.8.1.1, woocommerce.8.2.1, woocommerce.8.2.2, woocommerce.8.3.1, woocommerce.8.4.0, woocommerce.8.5.1, woocommerce.8.5.2, woocommerce.8.6.0, woocommerce.8.6.1, woocommerce.8.7.0, woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3, woocommerce.9.3.1, woocommerce.9.3.3, woocommerce.9.4.2, woocommerce.9.4.3, woocommerce.9.5.1
Hook Type: filter
See hook in action
Displaying hooks found in version: woocommerce.9.5.1apply_filters('woocommerce_product_source') is found 2 times:
- /includes/tracks/events/class-wc-products-tracking.php line 128
return; } /* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */ $source = apply_filters( 'woocommerce_product_source', self::is_importing() ? 'import' : self::TRACKS_SOURCE ); $properties = array( 'product_id' => $product_id, 'source' => $source, ); /* phpcs: enable */
- /includes/tracks/events/class-wc-products-tracking.php line 344
'product_type' => $product->get_type(), 'product_type_options' => $product_type_options_string, 'purchase_note' => $product->get_purchase_note() ? 'yes' : 'no', 'sale_price' => $product->get_sale_price() ? 'yes' : 'no', 'source' => apply_filters( 'woocommerce_product_source', self::is_importing() ? 'import' : self::TRACKS_SOURCE ), 'short_description' => $product->get_short_description() ? 'yes' : 'no', 'tags' => count( $product->get_tag_ids() ), 'upsells' => ! empty( $product->get_upsell_ids() ) ? 'yes' : 'no', 'weight' => $product->get_weight() ? 'yes' : 'no', 'global_unique_id' => $product->get_global_unique_id() ? 'yes' : 'no', );