Applying filters to content output
-
Currently story content can have paragraphs in the TinyMCE field of timeline stories, but those aren’t displayed on the front end because the
the_content
filter isn’t applied to it. Could you either apply that filter so TinyMCE styles are applied when it’s output, by changing line 217 ofcool-timeline-shortcode.php
to:$post_content = apply_filters( 'the_content', get_the_content() );
Or the other alternative would be to allow developers to hook into the plugin at that point and apply their own filters to the content, like this:
$post_content = apply_filters( 'cool_timeline_post_content', get_the_content() );
Would either of those be feasible?
- The topic ‘Applying filters to content output’ is closed to new replies.