Action
rpress_after_graph
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#
| Parameter | Type | Description |
|---|---|---|
$graph | RPRESS_Graph | The 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), inRPRESS_Graph::display()
See also#
Was this page helpful?
