Closed websevendev closed 6 years ago
Aaand I just read the readme, ignore this.
if ( class_exists( 'Subtitles' ) && method_exists( 'Subtitles', 'subtitle_styling' ) ) {
remove_action( 'wp_head', array( Subtitles::getInstance(), 'subtitle_styling' ) );
}
Hello,
I'm adding support for this plugin into my theme and am taking the subtitle directly from post meta and adding it with custom markup.
I'm using
add_filter('subtitle_view_supported', '__return_false');
to disable the default functionality, how ever it also outputs the CSS in the head which is not needed in my use case:Would be great if the
subtitle_view_supported
filter would also turn that off or a separate filter for removing it, as it's not using thewp_enqueue_style
to be easily removable.Thanks.