How to add attributes to form in Pirate Forms

Pirate Forms comes up with many filters that you can use to custom the form. A full list of actions and filters is available here.

If you want to add attributes to the <form> element of your Pirate Forms by using pirate_forms_form_attributes filter:

function add_form_attr( $action ) {
	$action['action'] = 'https://custom-filter-url/';
	$action['id']    = 'custom-id';
	return $action;
}
add_filter( 'pirate_forms_form_attributes', 'add_form_attr' );

That will add action and id attribute to your form.