What actions and filters are available in Pirate Forms

Available Actions

  • pirate_forms_before_sending
  • do_action( 'pirate_forms_before_sending', $site_recipients, $subject, $body, $headers, $attachments );
    	
    where
    	$site_recipients: comma-separated list of email recipients (string)
    	$subject: subject of the email (string)
    	$body: body content of the email (string)
    	$headers: headers (string)
    	$attachments: full path to the file attached to the email (string)
    	
  • pirate_forms_after_sending
  • do_action( 'pirate_forms_after_sending', $response, $site_recipients, $subject, $body, $headers, $attachments );
    	
    where
    	$response: whether the email contents were sent successfully (boolean)
    	$site_recipients: comma-separated list of email recipients (string)
    	$subject: subject of the email (string)
    	$body: body content of the email (string)
    	$headers: headers (string)
    	$attachments: full path to the file attached to the email (string)
    	
  • pirate_forms_before_sending_confirm
  • do_action( 'pirate_forms_before_sending_confirm', $site_recipients, $subject, $body, $headers);
    	
    where
    	$site_recipients: the email of the submitter (string)
    	$subject: subject of the email (string)
    	$body: body content of the email (string)
    	$headers: headers (string)
    	
  • pirate_forms_after_sending_confirm
  • do_action( 'pirate_forms_after_sending_confirm', $response, $site_recipients, $subject, $body, $headers);
    	
    where
    	$response: whether the email contents were sent successfully (boolean)
    	$site_recipients: the email of the submitter (string)
    	$subject: subject of the email (string)
    	$body: body content of the email (string)
    	$headers: headers (string)
    	

Available Filters

  • pirateform_wrap_classes_name
  • apply_filters( 'pirateform_wrap_classes_name', $wrap_classes )
    	
    where
    	$wrap_classes : classes that need to be added to the Contact Name element (array)
    	
  • pirateform_wrap_classes_email
  • apply_filters( 'pirateform_wrap_classes_email', $wrap_classes )
    	
    where
    	$wrap_classes : classes that need to be added to the Contact Email element (array)
    	
  • pirateform_wrap_classes_subject
  • apply_filters( 'pirateform_wrap_classes_subject', $wrap_classes )
    	
    where
    	$wrap_classes : classes that need to be added to the Subject element (array)
    	
  • pirateform_wrap_classes_message
  • apply_filters( 'pirateform_wrap_classes_message', $wrap_classes )
    	
    where
    	$wrap_classes : classes that need to be added to the Message element (array)
    	
  • pirateform_wrap_classes_attachment
  • apply_filters( 'pirateform_wrap_classes_attachment', $wrap_classes )
    	
    where
    	$wrap_classes : classes that need to be added to the Attachment element (array)
    	
  • pirateform_wrap_classes_captcha
  • apply_filters( 'pirateform_wrap_classes_captcha', $wrap_classes )
    	
    where
    	$wrap_classes : classes that need to be added to the CAPTCHA element (array)
    	
  • pirateform_wrap_classes_submit
  • apply_filters( 'pirateform_wrap_classes_submit', $wrap_classes )
    	
    where
    	$wrap_classes : classes that need to be added to the Submit button element (array)
    	
  • pirate_forms_public_controls
  • apply_filters( 'pirate_forms_public_controls', $elements )
    	
    where
    	$elements: elements that need to be added to the form (array)
    	
  • pirate_forms_upload_dir
  • apply_filters( 'pirate_forms_upload_dir', $attributes );
    	
    where
    	$attributes: an array that contains "dir" and "url" corresponding to base directory and the base URL to use (array)
    	
  • pirate_forms_admin_controls
  • apply_filters( 'pirate_forms_admin_controls', $elements );
    	
    where
    	$elements: which tabs should contain what elements (array)
    	
  • pirate_forms_admin_controls_for_options
  • apply_filters( 'pirate_forms_admin_controls_for_options'', $elements );
    	
    where
    	$elements: elements to be displayed in the Options tab the settings page (array)
    	
  • pirate_forms_admin_controls_for_fields
  • apply_filters( 'pirate_forms_admin_controls_for_options'', $elements );
    	
    where
    	$elements: elements to be displayed in the Fields Settings tab the settings page (array)
    	
  • pirate_forms_admin_controls_for_field_labels
  • apply_filters( 'pirate_forms_admin_controls_for_options'', $elements );
    	
    where
    	$elements: elements to be displayed in the Fields Labels tab the settings page (array)
    	
  • pirate_forms_admin_controls_for_alerts
  • apply_filters( 'pirate_forms_admin_controls_for_options'', $elements );
    	
    where
    	$elements: elements to be displayed in the Alert Messages tab the settings page (array)
    	
  • pirate_forms_admin_controls_for_smtp
  • apply_filters( 'pirate_forms_admin_controls_for_options'', $elements );
    	
    where
    	$elements: elements to be displayed in the SMTP tab the settings page (array)