From 8a35c8fc23f1395f24237459157fe83ec285212d Mon Sep 17 00:00:00 2001 From: Shiva Poudel Date: Tue, 6 Feb 2018 01:15:47 +0545 Subject: [PATCH] Fix - Incorrect action as it was filter hook --- includes/admin/class-wc-admin-webhooks.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/admin/class-wc-admin-webhooks.php b/includes/admin/class-wc-admin-webhooks.php index 2062713ac4a..eb665ffbe6e 100644 --- a/includes/admin/class-wc-admin-webhooks.php +++ b/includes/admin/class-wc-admin-webhooks.php @@ -2,10 +2,8 @@ /** * WooCommerce Admin Webhooks Class * - * @author Automattic - * @category Admin - * @package WooCommerce/Admin - * @version 3.3.0 + * @package WooCommerce\Admin + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -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' ) ); }