Last active
June 2, 2021 10:01
-
-
Save selul/4f527d8210cbc163d02af75bab7e800e to your computer and use it in GitHub Desktop.
Force replacement on ajax when logged in
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 | |
/* | |
Plugin Name: Optimole - Force replacements on ajax when logged in. | |
Version: 0.0.1 | |
Requires PHP: 7.0 | |
Author URI: https://optimole.com | |
*/ | |
add_filter('optml_force_replacement',function($return){ | |
if( is_user_logged_in() ){ | |
return true; | |
} | |
return $return; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment