bp_profile_search_redirect_admin_screens ()
BuddyBoss Profile Search admin重定向。
描述
源
文件:bp-core /概要搜索/ bps-admin.php
函数bp_profile_search_redirect_admin_screens () {$redirect_to_main_form = false;$ current_screen = get_current_screen ();如果('edit-bp_ps_form' == $current_screen->id) {$redirect_to_main_form = true;} else if ('bp_ps_form' == $current_screen->id && 'add' == $current_screen->action) {$redirect_to_main_form = true;} if ($redirect_to_main_form) {$main_form = bp_profile_search_main_form();//创建一个表单如果还没有创建if (!$main_form) {bp_profile_search_add_main_form();$ main_form = bp_profile_search_main_form ();} //重定向到编辑表单if ($main_form) {wp_redirect(admin_url('post.php?= '。main_form美元。“行动=编辑')); die(); } } }
更新日志
版本 | 描述 |
---|---|
BuddyBoss 1.0.0 | 介绍了。 |