I don’t really know BBPress, but the basic thing is one has to hook LYTE into BBPress using bbpress’s filters. I don’t know bbpress’ API, but the following code snippet _might_ do that;
add_filter('bbp_get_topic_content', 'lyte_parse');
add_filter('bbp_get_reply_content', 'lyte_parse');
<span class=”HwtZe” lang=”en”><span class=”jCAhz ChMk0b”><span class=”ryNqvb”>Thanks, it worked.</span></span> <span class=”jCAhz ChMk0b”><span class=”ryNqvb”>True, only in the “httpv” format of the link.</span></span> <span class=”jCAhz ChMk0b”><span class=”ryNqvb”>Shortcodes don’t work.</span></span></span>
ah, shortcodes might work if you would add;
add_filter('bbp_get_topic_content', 'lyte_prepare', 9, 1);
add_filter('bbp_get_reply_content', 'lyte_prepare', 9, 1);
I had the same issue with bbp custom post type, and the first code provided by @optimizingmatters resolved the issue. With that code snippet installed in functions.php file, the embedded videos from YouTube in forums are now lazyloaded. Thank you so much.
-
This reply was modified 1 year, 3 months ago by
LELB Society.