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:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user