acf_remove_local_field()
acf_remove_local_field
Removes a field for the given key.
No Hooks.
Returns
true|false.
Usage
acf_remove_local_field( $key );
- $key(string)
- The field key.
Default:''
Changelog
| Since 5.7.10 | Introduced. |
acf_remove_local_field() acf remove local field code ACF 6.0.4
function acf_remove_local_field( $key = '' ) {
return acf_get_local_store( 'fields' )->remove( $key );
}