Created
September 23, 2020 11:26
-
-
Save paulgoodchild/d60b5cc70780fccb4d710720bccd3233 to your computer and use it in GitHub Desktop.
Customise the hook/location where Shield's Antibot feature will output any content
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 | |
/** | |
* Use this filter to change the precise location where Shield's Antibot features will be | |
* output within the Woocommerce checkout form. | |
*/ | |
add_filter( 'icwp-wpsf-woocommerce_checkout_hook_location', function ( $hook ) { | |
/** | |
* This is the default hook location used by Shield. | |
*/ | |
$hook = 'woocommerce_after_checkout_registration_form'; | |
/** | |
* You can change the hook to be somewhere else, for example 'before' instead of 'after' | |
*/ | |
$hook = 'woocommerce_before_checkout_registration_form'; | |
// ALWAYS return $hook. | |
return $hook; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment