Created
June 2, 2014 21:03
-
-
Save ciaranmg/50be8c519ebb5a54b8f9 to your computer and use it in GitHub Desktop.
Bypassing the default content filter on the Authentication Plugin
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 | |
// Grab the plugin global | |
global $agora_mw_auth_plugin; | |
// Remove the filter | |
remove_filter( 'the_content', array($agora_mw_auth_plugin, 'content_filter') ); | |
// Display the content, now without the filter running. | |
the_content(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment