Action
rpress_add_discount_form_bottom
Fires at the bottom of the Add Discount form, after the form table.
Runs after the closing table tag of the Add New Discount screen and before the submit button. Use it to print additional fields or help text. The action receives no arguments.
Example#
function my_add_discount_form_bottom() {
echo '<p class="description">' . esc_html__( 'Review discount codes before sharing them.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_add_discount_form_bottom', 'my_add_discount_form_bottom' );
Notes#
Printing a field does not save it. Save submitted values from rpress_post_insert_discount (add) or rpress_post_update_discount (edit).
Source#
Fired from:
includes/admin/discounts/add-discount.php(line 316)
See also#
Was this page helpful?
