fix: Change filter priority to 101 (after RCP)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user