Debug: Add logging to hooks registration
This commit is contained in:
@@ -31,9 +31,14 @@ final class YoutubeFacadeHooksRegistrar
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
// Debug: Log that registration is happening
|
||||
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);
|
||||
|
||||
file_put_contents('/tmp/yt-debug.log', date('H:i:s') . " the_content filter registered\n", FILE_APPEND);
|
||||
|
||||
// Enqueue facade assets
|
||||
add_action('wp_enqueue_scripts', [$this, 'enqueueAssets'], 15);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user