rwmb_autocomplete_field

rwmb_autocomplete_field

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('rwmb_autocomplete_field') is found 1 times:

  • /vendor/wpmetabox/meta-box/inc/fields/autocomplete.php line 35
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    $meta = array_filter( $meta, function ( $index ) use ( $meta ) {
        return $meta[ $index ] !== '';
    }, ARRAY_FILTER_USE_KEY );
     
    $field   = apply_filters( 'rwmb_autocomplete_field', $field, $meta );
    $options = $field['options'];
     
    if ( is_array( $field['options'] ) ) {
        $options = [];
        foreach ( $field['options'] as $value => $label ) {
            $options[] = [