You appear to be a bot. Output may be restricted
Description
Add a contact method if not already listedWordPress SEO adds Google+ (googleplus), Twitter (twitter) and now (1.4.10) Facebook URL facebook) Notes: We can alter the label using the "user_$name_label" filter echo apply_filters('user_'.$name.'_label', $desc); ?> We can do this for twitter, facebook and googleplus later if we want OR just do it here by updating the label?
Usage
$array = oiku_user_contactmethod( $contact_methods, $key, $label, $shortcode );
Parameters
- $contact_methods
- ( array ) required – array of contact methods to filter
- $key
- ( string ) required – contact method to check for
- $label
- ( string ) required – translatable part of the label
- $shortcode
- ( string ) required – oik shortcode suffix – with leading space – non translatable
Returns
array of contact methodsSource
File name: oik-user/admin/oik-user.phpLines:
1 to 9 of 9
function oiku_user_contactmethod( $contact_methods, $key, $label, $shortcode ) { $key_present = bw_array_get( $contact_methods, $key, false ); if ( !$key_present ) { $contact_methods[$key] = __( $label ) . $shortcode; } else { $contact_methods[$key] = $key_present . $shortcode; } return( $contact_methods ); }View on GitHub