Filter
rpress_special_instructions
On this page
Filters whether the special instructions field is shown in the menu item modal.
Applied in the add-to-cart and edit-cart-item modal templates. Returning false removes the special instructions text area from the modal.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$show | bool | Whether to show the special instructions field. Defaults to true. |
Return value#
bool. True to show the field, false to hide it.
Example#
add_filter( 'rpress_special_instructions', '__return_false' );
Notes#
Applies to both the add and edit modals.
Source#
Applied in:
templates/rpress-edit-product.php(line 10)templates/rpress-show-products.php(line 9)
See also#
Was this page helpful?
