Filter on get_the_content
-
Hi.
I’m using a custom ACF structure to register the content of the pages and, on these pages, the button to listen to the content doesn’t work because the get_the_content function returns empty.
Checking the plugin code I identified that the get_the_content function is used to get the content to be played, but there is no filter that allows editing the content before it is configured for playback. For that reason, I’ve added a filter that allows me to edit the content, and I’d like this tweak to be definitely added to the plugin.
I added, in the responsivevoice-text-to-speech.php file, after line 35, the following code:
$postContent = apply_filters( ‘RV_content’, $postContent );
I believe that the name of the filter could even be different, but allowing the text to be heard to be edited would be of great help, both for me and for the community.
Other than that, thanks for the great plugin.
Thanks.
- The topic ‘Filter on get_the_content’ is closed to new replies.