acf/pre_load_metadata
acf/pre_load_metadata
Appears in: advanced-custom-fields.6.5.1
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.5.1apply_filters('acf/pre_load_metadata') is found 3 times:
- /includes/acf-meta-functions.php line 103
* @return mixed */ function acf_get_metadata( $post_id = 0, $name = '', $hidden = false ) { // Allow filter to short-circuit logic. $null = apply_filters( 'acf/pre_load_metadata', null, $post_id, $name, $hidden ); if ( $null !== null ) { return ( $null === '__return_null' ) ? null : $null; } // Decode $post_id for $type and $id. $decoded = acf_decode_post_id( $post_id );
- /includes/acf-meta-functions.php line 388
return null; } // Allow filter to short-circuit logic. $null = apply_filters( 'acf/pre_load_metadata', null, $post_id, $field['name'], $hidden ); if ( $null !== null ) { return ( $null === '__return_null' ) ? null : $null; } // Decode the $post_id for $type and $id. $decoded = acf_decode_post_id( $post_id );
- /includes/acf-value-functions.php line 26
return $reference; } // Back-compat. $reference = apply_filters( 'acf/pre_load_metadata', null, $post_id, $field_name, true ); if ( $reference !== null ) { return ( $reference === '__return_null' ) ? null : $reference; } $decoded = acf_decode_post_id( $post_id );