Fix - Incorrect action as it was filter hook

This commit is contained in:
Shiva Poudel 2018-02-06 01:15:47 +05:45
parent 750e0e78e4
commit 8a35c8fc23
1 changed files with 3 additions and 5 deletions

View File

@ -2,9 +2,7 @@
/**
* WooCommerce Admin Webhooks Class
*
* @author Automattic
* @category Admin
* @package WooCommerce/Admin
* @package WooCommerce\Admin
* @version 3.3.0
*/
@ -21,7 +19,7 @@ class WC_Admin_Webhooks {
* Initialize the webhooks admin actions.
*/
public function __construct() {
add_action( 'woocommerce_save_settings_api_webhooks', array( $this, 'allow_save_settings' ) );
add_filter( 'woocommerce_save_settings_api_webhooks', array( $this, 'allow_save_settings' ) );
add_action( 'admin_init', array( $this, 'actions' ) );
}