I am trying to use plugin action in my custom function. Plugin is adding an action to wordpress registration form

add_action( 'bp_before_account_details_fields', 'tv_bp_avatar_upload_form' );

But i want to use this in my custom registration form ( inside custom_registration() ) please suggest me how to add this action to my function.


  • Tell us more bout inside custom_registration(), is it a function in a plugin you are writing? Or is it in a template? Nov 8, 2015 at 11:24
  • it is in a template Nov 8, 2015 at 13:27

1 Answer 1


You can simpy call the action yourself:

do_action( 'bp_before_account_details_fields' );

See https://codex.wordpress.org/Function_Reference/do_action

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.