RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Filters
  6. rpress_order_note_meta

rpress_order_note_meta

This filter is applied to use the order note metadata, it is one parameter.
$order_note -> get note details.

An example of how you can append additional information:

function rpress_order_note_fields( $order_note ) {
$order_note = isset( $_POST['rpress_order_note'] ) ? sanitize_text_field( $_POST['rpress_order_note'] ) : '';
return $order_note;
}
add_filter( 'rpress_order_note_meta', 'rpress_order_note_fields' );

How can we help?