acf/import_(hook_name)
Fires immediately after an ACF post has been imported.
Usage
add_action( 'acf/import_(hook_name)', 'wp_kama_acf_import_hook_name_action' );
/**
* Function for `acf/import_(hook_name)` action-hook.
*
* @param array $post The ACF post array.
*
* @return void
*/
function wp_kama_acf_import_hook_name_action( $post ){
// action...
}
- $post(array)
- The ACF post array.
Changelog
| Since 5.0.0 | Introduced. |
Where the hook is called
acf/import_(hook_name)
acf/import_(hook_name)
acf/includes/class-acf-internal-post-type.php 938
do_action( "acf/import_{$this->hook_name}", $post );
acf/includes/post-types/class-acf-field-group.php 559
do_action( "acf/import_{$this->hook_name}", $post );