Created
September 4, 2025 09:11
-
-
Save nicmare/585fd6ad0f235e38893819c92d6ee554 to your computer and use it in GitHub Desktop.
Remove WP Armour Scripts from Homepage
This file contains hidden or 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 | |
// unload wp armour honeypot assets due to jquery dependency | |
function remove_plugin_stuff_in_wp_loaded(){ | |
if(is_front_page()) | |
remove_action('wp_enqueue_scripts','wpa_load_scripts'); | |
} | |
add_action('wp', 'remove_plugin_stuff_in_wp_loaded'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment