Skip to content

Instantly share code, notes, and snippets.

@ControlledChaos
Forked from r-a-y/gist:5578432
Last active August 8, 2016 20:36
Show Gist options
  • Save ControlledChaos/336efa33d00afdf73cba to your computer and use it in GitHub Desktop.
Save ControlledChaos/336efa33d00afdf73cba to your computer and use it in GitHub Desktop.

Revisions

  1. ControlledChaos revised this gist Aug 8, 2016. 3 changed files with 12 additions and 8 deletions.
    3 changes: 3 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    Replace BuddyPress Registration
    -------------------------------
    WordPress Snippet
    8 changes: 0 additions & 8 deletions gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -1,8 +0,0 @@
    /**
    * 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' );
    9 changes: 9 additions & 0 deletions replace-buddypress-reg.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <?php

    function ccd_disable_bp_registration() {
    remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
    remove_action( 'bp_screens', 'bp_core_screen_signup' );
    }
    add_action( 'bp_loaded', 'ccd_disable_bp_registration' );

    ?>
  2. @r-a-y 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' );
  3. @r-a-y 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' );
  4. @r-a-y 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' );