有没有办法开发一个像这样的Wordpress管理面板?
http://deanelliott.me/wp-content/uploads/account-backend.jpg
我的客户希望它也显示在网站模板中。我真的不想把这件事外包出去,但我对如何做到这一点感到困惑。
任何帮助都将不胜感激。
有没有办法开发一个像这样的Wordpress管理面板?
http://deanelliott.me/wp-content/uploads/account-backend.jpg
我的客户希望它也显示在网站模板中。我真的不想把这件事外包出去,但我对如何做到这一点感到困惑。
任何帮助都将不胜感激。
我赞同Viruthagiri所说的话。您也可以使用插件Theme My Login 如果你想对用户隐藏真正的WordPress控制面板,只向他们显示他们自己的个人资料/编辑个人资料页面,就像你的网站一样。祝你好运!
要添加配置文件字段,请执行以下操作Justin Tadlock\'s post
要删除某些字段,请使用以下代码
add_filter(\'user_contactmethods\', \'no_contact_info\');
function no_contact_info($contactmethods) {
unset($contactmethods[\'aim\']);
unset($contactmethods[\'yim\']);
unset($contactmethods[\'jabber\']);
return $contactmethods;
}
但有些字段需要删除jQuery使用您自己的CSS和jQuery为页面完全设置样式并添加额外的行为
add_action( \'admin_print_scripts-profile.php\', \'custom_profile_style\' );
add_action( \'admin_print_scripts-user-edit.php\', \'custom_profile_style\' );
function custom_profile_style() {
wp_register_style( \'custom_profile_css\', get_stylesheet_directory_uri() . \'/css/profile.css\' );
wp_enqueue_style( \'custom_profile_css\' );
wp_register_script( \'custom_profile_js\', get_stylesheet_directory_uri() . \'/js/profile.js\' );
wp_enqueue_script( \'custom_profile_js\' );
}
我正在使用此向页面添加其他内容jQuery(document).ready( function($) {
$(\'#wpbody-content\').append(\'<iframe src="http://wordpress.stackexchange.com/" width="500" height="255" frameborder="0" scrolling="no"></iframe>\');
});
我有这段代码,它将复选框添加到“编辑用户”页面,但当我选中它并刷新页面时,复选框将被取消选中。。。怎么了?add_action( \'show_user_profile\', \'module_user_profile_fields\' ); add_action( \'edit_user_profile\', \'module_user_profile_fields\' ); function module_user_profile_fields( $user ) { ?>