Skip to content

Commit

Permalink
Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Timi-Artturi Mäkelä committed Apr 26, 2022
1 parent ad746fa commit 81deb99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Released]

## [1.0.1] - 2022-04-26
- Added filters oopi_before_save_post_acf and oopi_before_save_post_acf_type={field_type}.

## [1.0.0] - 2020-08-27

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/Attribute/Saver/AcfFieldSaver.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function save_post_acf( PostImportable $post, AcfField $field ) {

// Filter the field before the update_field.
$field = \apply_filters( 'oopi_before_save_post_acf', $field, $post );
$field = \apply_filters( 'oopi_before_post_acf_type_{$field->get_type()}', $field, $post );
$field = \apply_filters( 'oopi_before_save_post_acf/type={$field->get_type()}', $field, $post );

switch ( $field->get_type() ) {
case 'term':
Expand Down

0 comments on commit 81deb99

Please sign in to comment.