fix: Increase the_content filter priority to 150

Changed AdSense injection filter from priority 100 to 150 to ensure
it runs AFTER restrict-content-pro's rcp_filter_restricted_content
filter which also uses priority 100.

This should fix ads not appearing in post content.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-27 19:55:13 -06:00
parent b9b21c390a
commit 58a4cc2c56

View File

@@ -177,7 +177,8 @@ add_action('wp_head', 'roi_enqueue_adsense_script', 5);
/** /**
* Registra el filtro the_content para inyectar anuncios * Registra el filtro the_content para inyectar anuncios
*/ */
add_filter('the_content', 'roi_inject_content_ads', 100); // Prioridad 150 para ejecutar DESPUÉS de restrict-content-pro (100)
add_filter('the_content', 'roi_inject_content_ads', 150);
function roi_inject_content_ads(string $content): string function roi_inject_content_ads(string $content): string
{ {