Where Does Plugin Php Go?
-
hi
noob question, i’m developing a super-simple plugin, using the WORDPRESS PLUGIN BOILERPLATE GENERATOR http://wppb.me/
i generated the zip file successfully, now just trying to figure out where to put the code. I checked this, but still confused.
The code is very simple:
<?php function bp_redirect($user) { $redirect_url = 'http://www.mysite.com/yeah'; bp_core_redirect($redirect_url); } add_action('bp_core_signup_user', 'bp_redirect', 100, 1); ?>Does it go in
activate_redirect_after_register,run_redirect_after_register, or someplace else?i’m guessing this part should go in the ‘activate’ function
add_action(‘bp_core_signup_user’, ‘bp_redirect’, 100, 1);and everything should go in the ‘run’ section. Correct?
thx!
also asked here:
https://buddypress.org/support/topic/how-to-redirect-after-registration/
The topic ‘Where Does Plugin Php Go?’ is closed to new replies.