Skip to content

Instantly share code, notes, and snippets.

@JDGrimes
Created May 26, 2017 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JDGrimes/8ff628397c20d3cb1e630f0a6de8de11 to your computer and use it in GitHub Desktop.
Save JDGrimes/8ff628397c20d3cb1e630f0a6de8de11 to your computer and use it in GitHub Desktop.
Bypasses WP-SpamShield blocking for Easy Digital Downloads Software Licenses requests.
<?php
/**
* Plugin Name: WP-SpamShield Bypass for EDD SL
* Author: J.D. Grimes
* Author URI: https://codesymphony.co/
* Plugin URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Bypasses WP-SpamShield blocking for Easy Digital Downloads Software Licenses requests.
*
* ---------------------------------------------------------------------------------|
* Copyright 2017 J.D. Grimes (email : jdg@codesymphony.co)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2 or later, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* ---------------------------------------------------------------------------------|
*
* @package WPSpamShield_EDDSL_Bypass
* @version 1.0.0
* @author J.D. Grimes <jdg@codesymphony.co>
* @license GPLv2+
*/
add_filter( 'wpss_misc_form_spam_check_bypass', function ( $bypass ) {
if ( isset( $_POST['edd_action'] ) ) {
$bypass = true;
}
return $bypass;
} );
// EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment