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' ) ); + } /**