acf/add_meta_boxes
Fires after metaboxes have been added.
Usage
add_action( 'acf/add_meta_boxes', 'wp_kama_acf_add_meta_boxes_action', 10, 3 );
/**
* Function for `acf/add_meta_boxes` action-hook.
*
* @param string $post_type The post type.
* @param \WP_Post $post The post being edited.
* @param array $field_groups The field groups added.
*
* @return void
*/
function wp_kama_acf_add_meta_boxes_action( $post_type, $post, $field_groups ){
// action...
}
- $post_type(string)
- The post type.
- $post(\WP_Post)
- The post being edited.
- $field_groups(array)
- The field groups added.
Changelog
| Since 5.8.0 | Introduced. |
Where the hook is called
acf/add_meta_boxes
acf/add_meta_boxes
acf/src/Pro/Forms/WC_Order.php 145
do_action( 'acf/add_meta_boxes', $post_type, $post, $field_groups );
acf/includes/forms/form-post.php 183
do_action( 'acf/add_meta_boxes', $post_type, $post, $field_groups );