Skip to content
Docs
Get RestroPress

Action

rpress_after_graph

Updated
On this page

Fires after a graph is output.

Runs at the end of RPRESS_Graph::display(), after the graph script and container have been printed. Use it to print markup below the chart.

Parameters#

ParameterTypeDescription
$graphRPRESS_GraphThe graph object that was displayed.

Example#

function my_after_graph( $graph ) {
	echo '<p class="description">' . esc_html__( 'Figures exclude refunds.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_after_graph', 'my_after_graph', 10, 1 );

Source#

Fired from:

  • includes/admin/reporting/class-rpress-graph.php (line 245), in RPRESS_Graph::display()

See also#

Was this page helpful?