Created
May 26, 2017 19:48
-
-
Save JDGrimes/8ff628397c20d3cb1e630f0a6de8de11 to your computer and use it in GitHub Desktop.
Bypasses WP-SpamShield blocking for Easy Digital Downloads Software Licenses requests.
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 | |
/** | |
* 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 : [email protected]) | |
* | |
* 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 <[email protected]> | |
* @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