//添加自定义字段 function my_profile( $contactmethods ) { $contactmethods['tel'] = 'tel'; //增加 $contactmethods['fax'] = 'fax'; $contactmethods['wchat'] = 'wchat'; $contactmethods['mail'] = 'mail'; //增加 $contactmethods['skype'] = 'skype'; $contactmethods['add'] = 'add'; $contactmethods['copyrigh'] = 'copyrigh'; $contactmethods['facebook'] = 'facebook'; $contactmethods['twitter'] = 'twitter'; $contactmethods['pinterest'] = 'pinterest'; $contactmethods['phone'] = 'phone'; return $contactmethods; } add_filter('user_contactmethods','my_profile');
转载请注明:Wordpress» 添加基本编辑字段公共字段
标签: