Fix - Incorrect action as it was filter hook
This commit is contained in:
parent
750e0e78e4
commit
8a35c8fc23
|
@ -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' ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue