Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this filter to customize the ID used for graphs.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter( 'frm_graph_id' , 'change_graph_id' );
Parameters
- $id - the ID of the graph
Examples
Change ID used for graph
Use this code snippet to change the ID of a graph from chart__frm_column1 to chart_first_column_graph.
add_filter( 'frm_graph_id' , 'change_graph_id' );
function change_graph_id( $id ) {
if ( '_frm_column1' === $id ) {
return 'first_column_graph';
}
return $id;
}