ACF_Local_Meta::pre_load_meta
pre_load_meta
Injects the local meta.
Method of the class: ACF_Local_Meta{}
No Hooks.
Returns
mixed.
Usage
$ACF_Local_Meta = new ACF_Local_Meta(); $ACF_Local_Meta->pre_load_meta( $null, $post_id );
- $null(null) (required)
- An empty parameter. Return a non null value to short-circuit the function.
- $post_id(mixed) (required)
- The post_id for this data.
Changelog
| Since 5.8.0 | Introduced. |
ACF_Local_Meta::pre_load_meta() ACF Local Meta::pre load meta code ACF 6.8.8
function pre_load_meta( $null, $post_id ) {
if ( isset( $this->meta[ $post_id ] ) ) {
return $this->meta[ $post_id ];
}
return $null;
}