• Resolved snorklebum

    (@snorklebum)


    Hi,

    We use BuddyPress, Newsletter plugin along with Newsletter – WP Users Integration. I was looking for a way to display the check box on the Buddypress sign up form and hoping for some feedback on my solution below.

    I added a check for Buddypress within wpusers.php to pass the hook_register_form to the correct place, so line 73 is wrapped in an if else..

            if ( function_exists('buddypress') ) {
                add_action('bp_account_details_fields',array( $this,'hook_register_form'));
            } else {
                add_action('register_form', array($this, 'hook_register_form'));
            }

    Obviously this edits the main plugin file so I was wondering is there a way to do this using functions.php or could this check be added to the plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Hi, but the bp_account_details_fields is the account edit page or the buddypress custom signup form?

    Stefano.

    Thread Starter snorklebum

    (@snorklebum)

    Hi,
    This is for the buddypress new user sign up form, after making the above change the checkbox appears on this screen and the events trigger correctly adding them to the newsletter plugin subscription database.

    Plugin Author Stefano Lissa

    (@satollo)

    Hi thank you very much for your contribution. I verify if we should add that code in out wp users integration add on or in a separate add on specific for buddypress.

    Thank you!

    Stefano.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Buddypress signup form’ is closed to new replies.