From fc257754b2cfb9db92d58d52c0e914aa6390e854 Mon Sep 17 00:00:00 2001 From: Robin Jonsson Date: Wed, 1 Apr 2020 17:24:44 +0200 Subject: [PATCH] Hooks for cache flush changed to two that works --- fields/acf-base.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fields/acf-base.php b/fields/acf-base.php index 6f36a46..f186229 100644 --- a/fields/acf-base.php +++ b/fields/acf-base.php @@ -24,7 +24,9 @@ public function __construct() { parent::__construct(); // Hooks ! - add_action( 'save_post_attachment', array( $this, 'save_post_attachment' ) ); + add_action( 'add_attachment', array( $this, 'save_post_attachment' ) ); + add_action( 'edit_attachment', array( $this, 'save_post_attachment' ) ); + } /**