Skip to content

Instantly share code, notes, and snippets.

@r-a-y
Last active July 23, 2020 06:55
Show Gist options
  • Save r-a-y/5578432 to your computer and use it in GitHub Desktop.
Save r-a-y/5578432 to your computer and use it in GitHub Desktop.

Revisions

  1. r-a-y revised this gist May 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,6 @@
    */
    function my_disable_bp_registration() {
    remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
    remove_action( 'bp_screens', 'bp_core_screen_signup' );
    remove_action( 'bp_screens', 'bp_core_screen_signup' );
    }
    add_action( 'bp_loaded', 'my_disable_bp_registration' );
  2. r-a-y revised this gist May 14, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,4 @@ 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_bp_loaded' );
    add_action( 'bp_loaded', 'my_disable_bp_registration' );
  3. r-a-y created this gist May 14, 2013.
    8 changes: 8 additions & 0 deletions gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    /**
    * 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_bp_loaded' );