Filter
rpress_special_instruction_text
On this page
Filters the label above the special instructions field in the menu item modal.
Applied in the add-to-cart and edit-cart-item modal templates to the translated text 'Special Instructions?'. The result is passed through esc_html() and printed.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$text | string | Default label text. |
Return value#
string. The label text.
Example#
add_filter( 'rpress_special_instruction_text', 'my_special_instruction_text' );
function my_special_instruction_text( $text ) {
return __( 'Allergies or requests?', 'my-textdomain' );
}
Source#
Applied in:
templates/rpress-edit-product.php(line 13)templates/rpress-show-products.php(line 21)
See also#
Was this page helpful?
