Skip to content
Docs
Get RestroPress

Filter

rpress_special_instructions

Updated
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#

ParameterTypeDescription
$showboolWhether 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?