0

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.

Thanks

  • Tell us more bout inside custom_registration(), is it a function in a plugin you are writing? Or is it in a template? – Tobias Beuving Nov 8 '15 at 11:24
  • it is in a template – Bushra Shahid Nov 8 '15 at 13:27
0

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.