Skip to content

Instantly share code, notes, and snippets.

@helgatheviking
Last active December 19, 2016 05:08
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 helgatheviking/2347fd5dffe56b38bd71f269fa40da02 to your computer and use it in GitHub Desktop.
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
<?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