Created
January 9, 2020 12:53
-
-
Save danielbachhuber/09c4ecb103d030dbde3fa0f1a1d48060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Ensures the "Jump to Recipe" button is added to the content really late. | |
*/ | |
add_action( 'init', function(){ | |
if ( method_exists( 'Tasty_Recipes\Shortcodes', 'filter_the_content_late' ) ) { | |
remove_filter( 'the_content', array( 'Tasty_Recipes\Shortcodes', 'filter_the_content_late' ), 100 ); | |
add_filter( 'the_content', array( 'Tasty_Recipes\Shortcodes', 'filter_the_content_late' ), 10000 ); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment