Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function verify_secure_webhook() {
- if ( isset( $_GET['cid'] ) ) {
- $hash = md5( $_GET['cid'] . wp_fusion()->settings->get( 'access_key' ) );
- if ( $hash !== $_GET['scid'] ) {
- wp_die( 'Invalid.' );
- }
- }
- }
- add_action( 'init', 'verify_secure_webhook', 5 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement