Custom Fields
Re-Envisioned
Support General Programmatically modify field value prior to displaying in admin? Reply To: Programmatically modify field value prior to displaying in admin?

#11311

Anh Tran
Keymaster

Hi Denny,

The code should be like this:

add_filter( 'rwmb_site_name_field_meta', 'your_filter_function', 10, 3 );
function your_filter_function( $meta, $field, $saved ) {
    return 'Title here';
}

or

add_filter( 'rwmb_field_meta', 'your_filter_function', 10, 3 );
function your_filter_function( $meta, $field, $saved ) {
    if ( 'site_name' != $field['id'] ) {
        return $meta;
    }
    return 'Title here';
}