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