acf/pre_load_meta
Returns an array of "ACF only" meta for the given post_id.
Usage
add_filter( 'acf/pre_load_meta', 'wp_kama_acf_pre_load_meta_filter' );
/**
* Function for `acf/pre_load_meta` filter-hook.
*
* @param $post_id
*
* @return
*/
function wp_kama_acf_pre_load_meta_filter( $post_id ){
// filter...
return $post_id;
}
- $post_id
- -
Changelog
| Since 5.8.0 | Introduced. |
Where the hook is called
acf/pre_load_meta
acf/includes/acf-meta-functions.php 24
$null = apply_filters( 'acf/pre_load_meta', null, $post_id );
Where the hook is used in Advanced Custom Fields PRO
acf/includes/local-meta.php 41
add_filter( 'acf/pre_load_meta', array( $this, 'pre_load_meta' ), 1, 2 );