crp_wc_related_products_html
Filters the final related products HTML output.
Type: filter
Since: 4.2.0
Source: includes/woocommerce/class-woocommerce-module.php line 394
Parameters
| Type | Name | Description |
|---|---|---|
string | $output | HTML output. |
int | $source_product_id | Source product ID. |
int[] | $product_ids | Product IDs. |
Usage
add_filter( 'crp_wc_related_products_html', function($output, $source_product_id, $product_ids) {
// ...
return $output;
} );