fix: Change filter priority to 101 (after RCP)

This commit is contained in:
FrankZamora
2025-11-27 13:58:20 -06:00
parent d5bdb81cbe
commit deef577c36

View File

@@ -35,7 +35,8 @@ final class YoutubeFacadeHooksRegistrar
file_put_contents('/tmp/yt-debug.log', date('H:i:s') . " HooksRegistrar::register() called\n", FILE_APPEND);
// Filter post content to replace YouTube iframes with facades
add_filter('the_content', [$this->contentFilter, 'filter'], 20);
// Priority 101 = after rcp_filter_restricted_content (100)
add_filter('the_content', [$this->contentFilter, 'filter'], 101);
file_put_contents('/tmp/yt-debug.log', date('H:i:s') . " the_content filter registered\n", FILE_APPEND);