acf_setup_meta()
acf_setup_meta
Adds postmeta to storage.
No Hooks.
Returns
Array.
Usage
acf_setup_meta( $meta, $post_id, $is_main );
- $meta
- .
Default:array() - $post_id
- .
- $is_main
- .
Default:false
Notes
- See: ACF_Local_Meta::add() for list of parameters.
Changelog
| Since 5.8.0 | Introduced. |
acf_setup_meta() acf setup meta code ACF 6.8.8
function acf_setup_meta( $meta = array(), $post_id = 0, $is_main = false ) {
return acf_get_instance( 'ACF_Local_Meta' )->add( $meta, $post_id, $is_main );
}