fc_shipping_method_option_description_markup
Type: Filter
Filters the HTML for the shipping method option description.
Signature
apply_filters( 'fc_shipping_method_option_description_markup', $html, $method );
Parameters
| Name | Type | Description |
|---|---|---|
$html | string | HTML markup. |
$method | \WC_Shipping_Rate | Method. |
Since
1.2.0
Source: inc/checkout-steps.php
Examples
add_filter( 'fc_shipping_method_option_description_markup',
/**
* Add custom styling to shipping method descriptions.
*
* @param string $html HTML markup.
* @param \WC_Shipping_Rate $method Method.
* @return string Filtered value.
*/
function( $html, $method ) {
return '<div class="shipping-method-description-wrapper">' . $html . '</div>';
},
10,
2
);