File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
includes/Classifai/Features Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ public function __construct() {
66
66
public function setup () {
67
67
parent ::setup ();
68
68
add_action ( 'rest_api_init ' , [ $ this , 'register_endpoints ' ] );
69
+
70
+ if ( $ this ->is_enabled () ) {
71
+ add_filter ( 'the_content ' , [ $ this , 'render_post_audio_controls ' ] );
72
+ }
69
73
}
70
74
71
75
/**
@@ -81,10 +85,6 @@ public function feature_setup() {
81
85
82
86
add_action ( 'add_meta_boxes ' , [ $ this , 'add_meta_box ' ] );
83
87
add_action ( 'save_post ' , [ $ this , 'save_post_metadata ' ], 5 );
84
-
85
- if ( $ this ->is_enabled () ) {
86
- add_filter ( 'the_content ' , [ $ this , 'render_post_audio_controls ' ] );
87
- }
88
88
}
89
89
90
90
/**
@@ -621,7 +621,7 @@ public function render_post_audio_controls( string $content ): string {
621
621
wp_enqueue_style (
622
622
'classifai-post-audio-player-css ' ,
623
623
CLASSIFAI_PLUGIN_URL . 'dist/post-audio-controls.css ' ,
624
- array (),
624
+ array ( ' dashicons ' ),
625
625
get_asset_info ( 'post-audio-controls ' , 'version ' ),
626
626
'all '
627
627
);
You can’t perform that action at this time.
0 commit comments