我是buddypress的新手。在buddypress中是否有任何预加载的注册表单。如果有,请给出选项路径。我使用了插件“BuddyPress注册选项”。但是当我安装插件时,它显示了一条错误消息,如
Warning: Missing argument 2 for wpdb::prepare(), called in /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-content/plugins/bp-registration-options/includes/admin.php on line 19 and defined in /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/wp-db.php on line 990
Warning: Cannot modify header information - headers already sent by (output started at /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/wp-db.php:990) in /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/option.php on line 568
Warning: Cannot modify header information - headers already sent by (output started at /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/wp-db.php:990) in /var/www/TantraProjects/Ranjit/Nettantra_Social/wordpress/wp-includes/o
ption.php on line 569
如何在buddypress中建立注册表单。
答案 0 :(得分:0)
前面有人问过这个问题,但我会回答文档。是的,有一个预加载的注册表。 BuddyPress主要是WordPress注册之上的包装器(默认情况下是关于我)
路径是/your-theme/buddypress/members/register.php
要构建自定义注册表单,您可以使用它,放在主题的functions.php中:
<?php
// hacks and mods will go here
/**
* Disables BuddyPress' registration process and fallsback to WordPress' one.
*/
function my_disable_bp_registration() {
remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
remove_action( 'bp_screens', 'bp_core_screen_signup' );
}
add_action( 'bp_loaded', 'my_disable_bp_registration' );
add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
function firmasite_redirect_bp_signup_page($page ){
return bp_get_root_domain() . '/wp-signup.php';
}
?>