crp_wc_related_products_heading
Filter the heading displayed above the CRP WooCommerce related products section.
Type: filter
Since: 4.2.0
Source: includes/woocommerce/class-woocommerce-module.php line 374
Parameters
| Type | Name | Description |
|---|---|---|
string | $heading | Heading text. |
int | $source_product_id | Source product ID. |
int[] | $product_ids | Product IDs. |
Usage
add_filter( 'crp_wc_related_products_heading', function($heading, $source_product_id, $product_ids) {
// ...
return $heading;
} );