Support

Account

Home Forums Backend Issues (wp-admin) Adding image to the relational user select field Reply To: Adding image to the relational user select field

  • Hi guys

    Just want to let you know I have added in some new filters for the user field and will be included in the next version of ACF PRO:

    result
    – used to modify the text which is displayed for each user result

    
    $result = apply_filters("acf/fields/user/result", $result, $user, $field, $post_id);
    $result = apply_filters("acf/fields/user/result/name={$field['_name']}", $result, $user, $field, $post_id);
    $result = apply_filters("acf/fields/user/result/key={$field['key']}", $result, $user, $field, $post_id);
    

    search_columns
    – used to modify the columns which are searched

    
    $columns = apply_filters("acf/fields/user/search_columns", $columns, $search, $WP_User_Query, $field);
    $columns = apply_filters("acf/fields/user/search_columns/name={$field['_name']}", $columns, $search, $WP_User_Query, $field);
    $columns = apply_filters("acf/fields/user/search_columns/key={$field['key']}", $columns, $search, $WP_User_Query, $field);
    

    Hopefully these are self explanatory. I’ll add documentation soon

    Thanks
    E