Support for dynamic blocks/filter for the content
-
Hi Trinity team!
Thank you for your plugin that can make the content more chewable for visitors. I’m trying to use your plugin on the client’s website, but it is not working because the website uses dynamic Gutenberg blocks. But your plugin does not recognise the post content inside dynamic blocks. The reason is that the function trinity_get_clean_text doesn’t call the do_blocks function on the content.
My question is: can you implement that, please? It could be similar to what you do with shortcodes.
Another solution would be to add a filter to the raw content so that I can resolve the blocks in my plugin, and you don’t need to deal with that. All that is needed is to add the following code after line 336 in file inc/common.php:
$article_text = apply_filters( 'trinity_audio_clean_text_raw', $article_text, $post_id, $with_title, $with_excerpt );
Can you do that for me, please? Thank you very much!
Dan
- This topic was modified 2 years ago by .
- This topic was modified 2 years ago by .
- This topic was modified 2 years ago by .
- This topic was modified 2 years ago by .
The page I need help with: [log in to see the link]
- The topic ‘Support for dynamic blocks/filter for the content’ is closed to new replies.