Skip to content
Docs
Get RestroPress

Action

rpress_discounts_page_top

Updated
On this page

Fires at the top of the Discount Codes list screen, before the table form.

Runs after the page heading and divider on the Discount Codes list. Use it to print notices or summary content above the table. The action receives no arguments.

Example#

function my_discounts_page_top() {
	echo '<div class="notice notice-info inline"><p>' . esc_html__( 'Review active codes before each campaign.', 'my-plugin' ) . '</p></div>';
}
add_action( 'rpress_discounts_page_top', 'my_discounts_page_top' );

Source#

Fired from:

  • includes/admin/discounts/discount-codes.php (line 75), in rpress_discounts_page()

See also#

Was this page helpful?