Skip to content

Instantly share code, notes, and snippets.

@selul
Last active June 2, 2021 10:01
Show Gist options
  • Save selul/4f527d8210cbc163d02af75bab7e800e to your computer and use it in GitHub Desktop.
Save selul/4f527d8210cbc163d02af75bab7e800e to your computer and use it in GitHub Desktop.
Force replacement on ajax when logged in
<?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