Jun
19
2013
19
2013
Add custom authormeta fields
A snippet by admin
No Comments
Just drop this into your functions.php file, and call it a day!
function added_user_profile( $contactmethods )
{
$contactmethods['twitter'] = 'Twitter';
$contactmethods['facebook'] = 'Facebook';
return $contactmethods;
}
add_filter( 'user_contactmethods', 'added_user_profile', 10, 1 );
Leave a comment
Recent Snippets
- htaccess : Only allow access to specific wordpress upload types if logged in
- MySQL : Query WordPress Database for Invalid Media Filenames
- PHP : Get Actual IP Address with PHP
- JavaScript : Allow Tab in Textarea
- PHP : Clean sanitized database contents on output
- htaccess : Force www. prefix in URIs
- PHP : Force File Download with Correct Content Type
- Wordpress : Disable upgrade notification