Last active
December 19, 2016 05:08
-
-
Save helgatheviking/2347fd5dffe56b38bd71f269fa40da02 to your computer and use it in GitHub Desktop.
Ignores all AWeber errors and submits form. Requires Ninja Forms AWeber 1.3.1+. No longer required when using Ninja Forms THREE
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 | |
/** | |
* Plugin Name: Suppress all Ninja Forms AWeber errors | |
* Plugin URI: https://gist.github.com/helgatheviking/2347fd5dffe56b38bd71f269fa40da02 | |
* Description: Ignores all AWeber errors and submits form. Requires Ninja Forms AWeber 1.3.1+. No longer required when using Ninja Forms THREE. | |
* Version: 1.0.0 | |
* Author: helgatheviking | |
* Author URI: https://kathyisawesome.com | |
* Requires at least: 4.6 | |
* Tested up to: 4.7 | |
* | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
/* | |
* Suppress ALL AWeber errors and submit form | |
*/ | |
add_filter( 'ninja_forms_aweber_show_errors', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment