acf/pre_load_metadata

acf/pre_load_metadata

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.5.12.2

apply_filters('acf/pre_load_metadata') is found 1 times:

  • /includes/acf-meta-functions.php line 127
     * @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 );