acf/input/meta_box_priority
The Advanced Custom Fields acf input meta box priority hook.
Description
Parameters (2)
- 0. $priority (unknown)
- The priority.
- 1. $acf (unknown)
- The
acf
.
Usage
- To run the hook, copy the example below.
- $priority = apply_filters( 'acf/input/meta_box_priority', $priority, $acf );
- if ( !empty( $priority ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the acf/input/meta_box_priority callback
- function filter_acf_input_meta_box_priority( $priority, $acf ) {
- // make filter magic happen here...
- return $priority;
- };
- // add the filter
- add_filter( 'acf/input/meta_box_priority', 'filter_acf_input_meta_box_priority', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'acf/input/meta_box_priority', 'filter_acf_input_meta_box_priority', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /core/controllers/post.php
- $priority = apply_filters('acf/input/meta_box_priority', $priority, $acf);