You appear to be a bot. Output may be restricted
Description
Get the field labelNote: For backward compatibility, we retain the original labels for the default field names of the bw_user shortcode; name, bio and email.
If you want to use bw_user for an author-box use [bw_user fields="gravatar,about,bio" class="author-box"]
then use CSS to hide the labels and separators for gravatar
and bio
, and maybe not for about
.
Usage
$string = oiku_get_field_label( $field );
Parameters
- $field
- ( string ) required – the field name
Returns
string the label/title for the fieldSource
File name: oik-user/shortcodes/oik-user.phpLines:
1 to 10 of 10
function oiku_get_field_label( $field ) { $labels = array( "name" => __( "User name" , "oik-user" ) , "about" => __( "About", "oik-user" ) , "bio" => __( "Description", "oik-user" ) , "email" => __( "Email", "oik-user" ) , "url" => __( "Website", "oik-user" ) ); $label = bw_array_get( $labels, $field, null ); return( $label ); }View on GitHub