You appear to be a bot. Output may be restricted
Description
Get the field nameGiven a field name used in the shortcode return the actual field name required for get_the_author_meta() Note: We don't need to prefix some fields with user_ as get_the_author_meta() will do that for us.
Usage
$string = oiku_get_field_name( $field );
Parameters
- $field
- ( string ) required – the field name used in the shortcode
Returns
string the name of the field it maps toSource
File name: oik-user/shortcodes/oik-user.phpLines:
1 to 11 of 11
function oiku_get_field_name( $field ) { static $fields = array( "bio" => "description" , "name" => "display_name" , "about" => "display_name" , "forename" => "first_name" , "surname" => "last_name" , "site" => "url" ); $name = bw_array_get( $fields, $field, $field ); return( $name ); }View on GitHub