File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ public function renderChart( $atts ) {
101
101
}
102
102
103
103
$ id = 'visualizer- ' . $ atts ['id ' ];
104
- $ class = !empty ( $ atts ['class ' ] ) ? ' class=" ' . $ atts ['class ' ] . '" ' : '' ;
104
+ $ class = apply_filters ( Visualizer_Plugin::FILTER_CHART_WRAPPER_CLASS , $ atts ['class ' ], $ atts ['id ' ] );
105
+ $ class = !empty ( $ class ) ? ' class=" ' . $ class . '" ' : '' ;
105
106
106
107
$ type = get_post_meta ( $ chart ->ID , Visualizer_Plugin::CF_CHART_TYPE , true );
107
108
Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ class Visualizer_Plugin {
51
51
const ACTION_UPLOAD_DATA = 'visualizer-upload-data ' ;
52
52
53
53
// custom filters
54
- const FILTER_GET_CHART_SERIES = 'visualizer-get-chart-series ' ;
55
- const FILTER_GET_CHART_DATA = 'visualizer-get-chart-data ' ;
54
+ const FILTER_CHART_WRAPPER_CLASS = 'visualizer-chart-wrapper-class ' ;
55
+ const FILTER_GET_CHART_SERIES = 'visualizer-get-chart-series ' ;
56
+ const FILTER_GET_CHART_DATA = 'visualizer-get-chart-data ' ;
56
57
57
58
/**
58
59
* Singletone instance of the plugin.
You can’t perform that action at this time.
0 commit comments