Skip to content
Docs
Get RestroPress

Action

rpress_reports_graph_before

Updated
On this page

Fires before the earnings graph markup on the Earnings report view.

Runs inside the output buffer of the earnings graph function, before the earnings chart dashboard markup. Output is echoed and becomes part of the page.

Example#

function my_reports_graph_before() {
	echo '<p class="description">' . esc_html__( 'Figures are in store currency.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_reports_graph_before', 'my_reports_graph_before' );

Source#

Fired from:

  • includes/admin/reporting/graphing.php (line 292), in rpress_reports_graph()

See also#

Was this page helpful?