Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Buddypress registration

  • @projekt-42

    Participant

    Hi,

    I need to disable the Buddypress registration as it doesn’t meet german law requirements.

    I searched the forum already and tried everything but none of the mentioned solutions worked.

    The site is running on:

    Wordpress 3.8.1

    Buddypress 1.9.2

    Theme Jarida / TieLabs

    Any idea what to do to get BP registration disabled?

Viewing 1 replies (of 1 total)
  • @projekt-42

    Participant

    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!

Viewing 1 replies (of 1 total)
  • The topic ‘Disable Buddypress registration’ is closed to new replies.
Skip to toolbar