@projekt-42
9 years, 8 months ago
A hassle-free solution is to use a theme with a Restrict Page / Require A Login page template.
10 years, 8 months ago
Problem solved.
Anleitung:
Im Ordner /wp-content/plugins/ die Datei bp-custom.php anlegen.
Die bp-custom.php Datei öffnen und folgendes einfügen:
<?php /** * 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'; } ?>
Datei speichern. Fertig!