Works in functions.php but not in a snippet – execution time?
-
Hi,
Yoast SEO plugin has a filter to remove schema, that they say should be added in functions.php.
add_filter( 'wpseo_json_ld_output', '__return_false' );
The code is shown for completeness. The question is not about Yoast or the code. It works in functions.php. However when put in a WPCode snippet it doesn’t work. Why is that? I’m guessing it runs too late (?). I place it in the header with priority 0. Is there a way to make it run earlier?
Or is it something else?
Hope you can advise. Thank you.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Works in functions.php but not in a snippet – execution time?’ is closed to new replies.