FlyCRM 1.2.0 has 59 actions and 114 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when FlyCRM fires an action
add_action( 'flycrm_contact_user_linked', function( $contact, $user ) {
// Your code runs here.
}, 10, 2 );
// Change a value FlyCRM is about to use
add_filter( 'flycrm_deal_rotting_days', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * This hook is documented in includes/Plugin.php. */ do_action( 'flycrm_contact_user_linked', $contact, $user ); -
/** * Filter the number of days without activity after which an open deal counts * as stalled. */ apply_filters( 'flycrm_deal_rotting_days', 30 ); -
/** * Fires when a task is marked as completed. */ do_action( 'flycrm_task_completed', $this ); -
/** * Fires after a task is soft-deleted. */ do_action( 'flycrm_task_deleted', $task ); -
/** * Fires when a completed task is reopened. */ do_action( 'flycrm_task_reopened', $this ); -
/** * Fires after a WordPress user is given a CRM role. */ do_action( 'flycrm_team_member_added', $user, $role ); -
/** * Filter data before creating a document. */ apply_filters( "{$this->filter_prefix}_create_data", $params, $request ); -
/** * Filter the document query builder before execution. */ apply_filters( "{$this->filter_prefix}_query", $builder, $request ); -
/** * Filter data before updating a document. */ apply_filters( "{$this->filter_prefix}_update_data", $params, $document, $request ); -
/** * Filter the searchable columns for this entity. */ apply_filters( "flycrm_{$entity}_searchable_columns", $columns, $term ); -
/** * Filter the column pairs matched as one space-joined value. */ apply_filters( "flycrm_{$entity}_searchable_pairs", $pairs, $term ); -
/** * Filter the admin script dependencies. */ apply_filters( 'flycrm_admin_script_deps', $asset['dependencies'] ); -
/** * Filter the allowed MIME types for CRM file uploads. */ apply_filters( 'flycrm_allowed_file_types', $types ); -
/** * Filter data before creating an activity. */ apply_filters( 'flycrm_api_activity_create_data', $params, $request ); -
/** * Filter the activity API response data. */ apply_filters( 'flycrm_api_activity_data', $data, $activity ); -
/** * Filter data before updating an activity. */ apply_filters( 'flycrm_api_activity_update_data', $params, $activity, $request ); -
/** * Filter the address API response data. */ apply_filters( 'flycrm_api_address_data', $data, $address ); -
/** * Fires after a batch operation on companies. */ do_action( 'flycrm_api_company_batch_completed', $action, $success, $failed, $request ); -
/** * Filter the company collection API response data. */ apply_filters( 'flycrm_api_company_collection_data', $data, $request ); -
/** * Filter data before creating a company. */ apply_filters( 'flycrm_api_company_create_data', $params, $request ); -
/** * Filter the company API response data. */ apply_filters( 'flycrm_api_company_data', $data, $company ); -
/** * Filter the company query builder before execution. */ apply_filters( 'flycrm_api_company_query', $builder, $request ); -
/** * Filter data before updating a company. */ apply_filters( 'flycrm_api_company_update_data', $params, $company, $request ); -
/** * Fires after a batch operation on contacts. */ do_action( 'flycrm_api_contact_batch_completed', $action, $success, $failed, $request ); -
/** * Filter the contact collection API response data. */ apply_filters( 'flycrm_api_contact_collection_data', $data, $request ); -
/** * Filter data before creating a contact. */ apply_filters( 'flycrm_api_contact_create_data', $params, $request ); -
/** * Filter the contact API response data. */ apply_filters( 'flycrm_api_contact_data', $data, $contact ); -
/** * Filter the contact query builder before execution. */ apply_filters( 'flycrm_api_contact_query', $builder, $request ); -
/** * Filter data before updating a contact. */ apply_filters( 'flycrm_api_contact_update_data', $params, $contact, $request ); -
/** * Filter the list of REST API controllers. */ apply_filters( 'flycrm_api_controllers', $controllers ); -
/** * Fires after a batch operation on deals. */ do_action( 'flycrm_api_deal_batch_completed', $action, $success, $failed, $request ); -
/** * Filter the deal collection API response data. */ apply_filters( 'flycrm_api_deal_collection_data', $data, $request ); -
/** * Filter the deal contact API response data. */ apply_filters( 'flycrm_api_deal_contact_data', $data, $deal_contact ); -
/** * Filter data before creating a deal. */ apply_filters( 'flycrm_api_deal_create_data', $params, $request ); -
/** * Filter the deal API response data. */ apply_filters( 'flycrm_api_deal_data', $data, $deal ); -
/** * Filter the deal query builder before execution. */ apply_filters( 'flycrm_api_deal_query', $builder, $request ); -
/** * Filter data before updating a deal. */ apply_filters( 'flycrm_api_deal_update_data', $params, $deal, $request ); -
/** * Filter the document API response data. */ apply_filters( 'flycrm_api_document_data', $data, $document ); -
/** * Filter the capabilities that grant read access to document defaults. */ apply_filters( 'flycrm_api_document_defaults_caps', [ 'flycrm_manage_settings', 'flycrm_create_quotes', 'flycrm_edit_quotes', 'flycrm_create_invoices', 'flycrm_edit_invoices', ] ); -
/** * Filter the settings sections the document defaults route returns. */ apply_filters( 'flycrm_api_document_defaults_sections', [ 'quotes', 'invoices' ] ); -
/** * Filter the email API response data. */ apply_filters( 'flycrm_api_email_data', $data, $email ); -
/** * Filter data before creating a file record. */ apply_filters( 'flycrm_api_file_create_data', $create_data, $request ); -
/** * Filter the file API response data. */ apply_filters( 'flycrm_api_file_data', $data, $file ); -
/** * Filter the file list query builder. */ apply_filters( 'flycrm_api_file_query', $builder, $request ); -
/** * Fires after a batch operation on leads. */ do_action( 'flycrm_api_lead_batch_completed', $action, $success, $failed, $request ); -
/** * Filter the lead collection API response data. */ apply_filters( 'flycrm_api_lead_collection_data', $data, $request ); -
/** * Filter data before creating a lead. */ apply_filters( 'flycrm_api_lead_create_data', $params, $request ); -
/** * Filter the lead API response data. */ apply_filters( 'flycrm_api_lead_data', $data, $lead ); -
/** * Filter the lead query builder before execution. */ apply_filters( 'flycrm_api_lead_query', $builder, $request ); -
/** * Filter the lead source collection API response data. */ apply_filters( 'flycrm_api_lead_source_collection_data', $data, $request ); -
/** * Filter data before creating a lead source. */ apply_filters( 'flycrm_api_lead_source_create_data', $params, $request ); -
/** * Filter the lead source API response data. */ apply_filters( 'flycrm_api_lead_source_data', $data, $source ); -
/** * Filter the lead source query. */ apply_filters( 'flycrm_api_lead_source_query', $builder, $request ); -
/** * Filter data before updating a lead source. */ apply_filters( 'flycrm_api_lead_source_update_data', $params, $source, $request ); -
/** * Filter data before updating a lead. */ apply_filters( 'flycrm_api_lead_update_data', $params, $lead, $request ); -
/** * Filter the pipeline collection API response data. */ apply_filters( 'flycrm_api_pipeline_collection_data', $data, $request ); -
/** * Filter the pipeline API response data. */ apply_filters( 'flycrm_api_pipeline_data', $data, $pipeline ); -
/** * Filter the pipeline query builder before execution. */ apply_filters( 'flycrm_api_pipeline_query', $builder, $request ); -
/** * Filter data before updating settings. */ apply_filters( 'flycrm_api_settings_update_data', $params, $request ); -
/** * Filter the stage API response data. */ apply_filters( 'flycrm_api_stage_data', $data, $stage ); -
/** * Filter the status collection API response data. */ apply_filters( 'flycrm_api_status_collection_data', $data, $request ); -
/** * Filter data before creating a status. */ apply_filters( 'flycrm_api_status_create_data', $params, $request ); -
/** * Filter the status API response data. */ apply_filters( 'flycrm_api_status_data', $data, $status ); -
/** * This filter is documented in includes/API/StatusController.php */ apply_filters( 'flycrm_api_status_query', $builder, $request ); -
/** * Filter data before updating a status. */ apply_filters( 'flycrm_api_status_update_data', $params, $status, $request ); -
/** * Filter the tag collection API response data. */ apply_filters( 'flycrm_api_tag_collection_data', $data, $request ); -
/** * Filter data before creating a tag. */ apply_filters( 'flycrm_api_tag_create_data', $params, $request ); -
/** * Filter the tag API response data. */ apply_filters( 'flycrm_api_tag_data', $data, $tag ); -
/** * This filter is documented in includes/API/TagController.php */ apply_filters( 'flycrm_api_tag_query', $builder, $request ); -
/** * Filter data before updating a tag. */ apply_filters( 'flycrm_api_tag_update_data', $params, $tag, $request ); -
/** * Filter the task collection query params. */ apply_filters( 'flycrm_api_task_collection_params', $params ); -
/** * Filter data before creating a task. */ apply_filters( 'flycrm_api_task_create_data', $params, $request ); -
/** * Filter the task API response data. */ apply_filters( 'flycrm_api_task_data', $data, $task ); -
/** * Filter the task query builder before execution. */ apply_filters( 'flycrm_api_task_query', $builder, $request ); -
/** * Filter data before updating a task. */ apply_filters( 'flycrm_api_task_update_data', $params, $task, $request ); -
/** * Filter the WP_User_Query arguments for the user list endpoint. */ apply_filters( 'flycrm_api_user_query_args', $args, $request ); -
/** * Filter the capabilities for each role tier. */ apply_filters( 'flycrm_capabilities', [ 'administrator' => $admin_caps, 'flycrm_manager' => $manager_caps, 'flycrm_agent' => $agent_caps, ] ); -
/** * Fires when an email activity is logged on a contact. */ do_action( 'flycrm_contact_activity_logged', $contact_model, $activity ); -
/** * Filter the role assigned when creating a WordPress user from a contact. */ apply_filters( 'flycrm_contact_create_user_role', 'subscriber', $contact ); -
/** * Fires after a WordPress user is created from a contact. */ do_action( 'flycrm_contact_user_created', $user_id, $contact ); -
/** * Filter the dashboard response data. */ apply_filters( 'flycrm_dashboard_data', $data, $dates, $owner_id ); -
/** * Filter the dashboard KPI metrics. */ apply_filters( 'flycrm_dashboard_kpis', $kpis, $dates, $owner_id ); -
/** * Filter the date format FlyCRM prints dates in. */ apply_filters( 'flycrm_date_format', '' !== $format ? $format : 'M j, Y' ); -
/** * Fires when a deal moves to a different stage. */ do_action( 'flycrm_deal_stage_changed', $this, $old_stage_id, (int) $stage_id ); -
/** * Fires every time a quote or invoice is opened on its public page. Not fired * when a staff member who can open the document in the admin previews it. */ do_action( 'flycrm_document_viewed', $document, $is_first_view ); -
/** * Fires when the vendor backfill has finished. */ do_action( 'flycrm_dokan_import_complete', $progress ); -
/** * Fires after a vendor has been marked closed in the CRM. */ do_action( 'flycrm_dokan_vendor_closed', $contact, $vendor_id ); -
/** * Fires after a vendor first appears in the CRM. */ do_action( 'flycrm_dokan_vendor_created', $contact, $vendor_id ); -
/** * Fires the first time a vendor sells anything. */ do_action( 'flycrm_dokan_vendor_first_sale', $contact, $order, $vendor_id ); -
/** * Fires when a closed vendor comes back to the marketplace. */ do_action( 'flycrm_dokan_vendor_reopened', $contact, $vendor_id ); -
/** * Fires after a vendor's sale has been recorded. */ do_action( 'flycrm_dokan_vendor_sale_recorded', $contact, $order, $vendor_id ); -
/** * Fires after a vendor has been synced, new or not. */ do_action( 'flycrm_dokan_vendor_synced', $contact, $vendor_id ); -
/** * Fires when a user's email account is verified and connected. */ do_action( 'flycrm_email_account_connected', $this->user_id, $account ); -
/** * Filter the email account data for API responses. */ apply_filters( 'flycrm_email_account_data', $data, $this ); -
/** * Fires after the SMTP fields on the user profile page. */ do_action( 'flycrm_email_account_profile_fields', $user, new EmailAccount( $user->ID ) ); -
/** * Fires after SMTP settings are saved on the user profile page. */ do_action( 'flycrm_email_account_profile_save', $user_id, $email_account ); -
/** * Filter to register additional tabs in the email configuration card. */ apply_filters( 'flycrm_email_account_profile_tabs', [], $user ); -
/** * Filter email data before saving. */ apply_filters( 'flycrm_email_before_save', $email_data, $request ); -
/** * Filter the email body before sending. */ apply_filters( 'flycrm_email_body_before_send', $body, $entity_type, $entity, $request ); -
/** * Filter the allowed HTML tags for email body sanitization. */ apply_filters( 'flycrm_email_sanitize_html', [ 'b' => [], 'i' => [], 'em' => [], 'strong' => [], 'u' => [], 'br' => [], 'p' => [], 'a' => [ 'href' => [] ], 'ul' => [], 'ol' => [], 'li' => [], ] ); -
/** * Fires when email sending fails. */ do_action( 'flycrm_email_send_failed', $e->getMessage(), $args ); -
/** * Fires before an email is sent via SMTP. */ do_action( 'flycrm_email_sending', $mailer, $args ); -
/** * Fires after an email is sent successfully. */ do_action( 'flycrm_email_sent', $message_id, $args ); -
/** * Filter the default email settings. */ apply_filters( 'flycrm_email_settings_defaults', $defaults ); -
/** * Filter the email subject before sending. */ apply_filters( 'flycrm_email_subject_before_send', $subject, $entity_type, $entity, $request ); -
/** * Filter a resolved entity label. */ apply_filters( 'flycrm_entity_label', $label, $entity, $form ); -
/** * Filter the upload directory path for CRM files. */ apply_filters( 'flycrm_file_upload_dir', trailingslashit( $wp_upload['basedir'] ) . self::UPLOAD_DIR ); -
/** * Filters the fields an import can map a column to, beyond the built-in ones. * The mapping step lists them, and the values of the mapped columns reach * `flycrm_import_record_saved` once their record is saved. */ apply_filters( 'flycrm_import_fields', [], $entity_type ); -
/** * Fires when a CSV import has stopped saving rows. */ do_action( 'flycrm_import_finished', $definition ); -
/** * Fires after an import saves a record, with the values the row held for the * fields `flycrm_import_fields` added. */ do_action( 'flycrm_import_record_saved', $record, $extra, $record::getEntityName() ); -
/** * Fires before a CSV import starts saving rows. */ do_action( 'flycrm_import_started', $definition ); -
/** * Fires after an activity is logged for an integration submission. */ do_action( 'flycrm_integration_activity_logged', $activity, $entity, $entity_type, $options ); -
/** * Filter integration categories. */ apply_filters( 'flycrm_integration_categories', self::CATEGORIES ); -
/** * Fires after a contact is created via an integration. */ do_action( 'flycrm_integration_contact_created', $contact, $data, $options ); -
/** * Fires after a contact is updated via an integration. */ do_action( 'flycrm_integration_contact_updated', $contact, $data, $options ); -
/** * Filter the CRM fields available for form field mapping. */ apply_filters( 'flycrm_integration_crm_fields', $fields ); -
/** * Fires after a lead is created via an integration. */ do_action( 'flycrm_integration_lead_created', $lead, $data, $options ); -
/** * Fires after a lead is updated via an integration. */ do_action( 'flycrm_integration_lead_updated', $lead, $data, $options ); -
/** * Filter the data before processing. */ apply_filters( 'flycrm_integration_process_data', $data, $options ); -
/** * Fires after built-in integrations are registered. */ do_action( 'flycrm_integration_providers', $this ); -
/** * Fires after an invitation is accepted and the account exists. */ do_action( 'flycrm_invitation_accepted', $user_id, $invitation ); -
/** * Fires after a lead is converted to a contact (and optionally a company and * deal). */ do_action( 'flycrm_lead_converted', $lead, $contact, $company, $deal ); -
/** * Fires after a converted lead's activities and tasks are linked to the new * contact. */ do_action( 'flycrm_lead_history_carried_forward', $contact, $lead ); -
/** * Filter the pro licence state exposed to the admin app. */ apply_filters( 'flycrm_license_state', $default ); -
/** * Filter the maximum file upload size for CRM files. */ apply_filters( 'flycrm_max_upload_size', wp_max_upload_size() ); -
/** * Filter the onboarding steps. */ apply_filters( 'flycrm_onboarding_steps', $steps ); -
/** * Filter the WordPress roles eligible to be CRM owners. */ apply_filters( 'flycrm_owner_roles', [ 'administrator', 'flycrm_manager', 'flycrm_agent' ] ); -
/** * Filter the scripts the PDF font stack can draw. */ apply_filters( 'flycrm_pdf_covered_scripts', array_values( array_unique( $covered ) ), $fonts ); -
/** * Filter the fonts an administrator can download for the PDF. */ apply_filters( 'flycrm_pdf_font_catalog', $fonts ); -
/** * Filter the CSS font-family the PDF templates use. */ apply_filters( 'flycrm_pdf_font_family', implode( ', ', $families ) ); -
/** * Filter the fonts registered with the PDF renderer. */ apply_filters( 'flycrm_pdf_fonts', FontCatalog::installed() ); -
/** * Filter the scripts the PDF renderer can name. */ apply_filters( 'flycrm_pdf_scripts', $scripts ); -
/** * Filter the PDF stylesheet file path. */ apply_filters( 'flycrm_pdf_stylesheet_path', $stylesheet_path, $template_path ); -
/** * Filter the PDF template file path. */ apply_filters( 'flycrm_pdf_template_path', $template_path, $template, $document ); -
/** * Filter the roles a contact may be linked to. Empty means any role. */ apply_filters( 'flycrm_portal_user_roles', [] ); -
/** * Filter the plugins FlyCRM recommends during setup. */ apply_filters( 'flycrm_recommended_plugins', $catalogue ); -
/** * Filter the custom CRM role definitions. */ apply_filters( 'flycrm_roles', $roles ); -
/** * Filter how settings are named in validation messages. */ apply_filters( 'flycrm_settings_labels', $labels ); -
/** * Filter the checks a setting must pass before it is stored. */ apply_filters( 'flycrm_settings_rules', $rules ); -
/** * Filter the settings that are secrets, as dot paths such as * payment_gateways.stripe.live_secret_key. A response carries them masked, and * a masked value sent back leaves the stored one alone. */ apply_filters( 'flycrm_settings_secret_paths', [] ); -
/** * Filter whether the review prompt may be shown at all. */ apply_filters( 'flycrm_show_review_prompt', true ); -
/** * Filter whether the setup wizard may run. */ apply_filters( 'flycrm_show_setup_wizard', true ); -
/** * Filter the columns that hold site time, by table without the prefix. */ apply_filters( 'flycrm_site_time_columns', self::COLUMNS ); -
/** * Fires after stored site-time values were moved to a new zone. */ do_action( 'flycrm_site_timezone_synced', (string) $from, $to ); -
/** * Filter the valid batch actions for tasks. */ apply_filters( 'flycrm_task_bulk_actions', $valid_actions ); -
/** * Fires after a task is created. */ do_action( 'flycrm_task_created', $task, $params, $request ); -
/** * Fires after a task is updated. */ do_action( 'flycrm_task_updated', $task, $request ); -
/** * Fires after a member's CRM access is revoked. */ do_action( 'flycrm_team_member_removed', $user ); -
/** * Fires after a member's CRM role changes. */ do_action( 'flycrm_team_member_updated', $user, $role ); -
/** * Filter the usage report before it is sent to Appsero. */ apply_filters( 'flycrm_tracker_extra_data', $data ); -
/** * Fires when somebody answers the diagnostics question during setup. */ do_action( 'flycrm_tracking_consent', $allow ); -
/** * Fires after a contact has been synced to weMail. */ do_action( 'flycrm_wemail_contact_synced', $subscriber, $fields ); -
/** * Filter the subscriber fields before pushing to weMail. */ apply_filters( 'flycrm_wemail_subscriber_fields', $fields, $this->integration ); -
/** * Filter the seconds one weMail sync request may spend pushing contacts. */ apply_filters( 'flycrm_wemail_sync_time_limit', $limit ); -
/** * Fires when a new contact is created from a WooCommerce order. */ do_action( 'flycrm_woocommerce_contact_created', $contact, $order ); -
/** * Fires when a new order is placed. */ do_action( 'flycrm_woocommerce_order_created', $contact, $order ); -
/** * Fires when an order is refunded and the contact has been synced. */ do_action( 'flycrm_woocommerce_order_refunded', $contact, $order, $refund ); -
/** * Fires when an order status changes and the contact has been synced. */ do_action( 'flycrm_woocommerce_order_status_changed', $contact, $order, $old_status, $new_status ); -
/** * Fires after a contact has been synced from a WooCommerce order. */ do_action( 'flycrm_woocommerce_order_synced', $contact, $order ); -
do_action( "flycrm_{$entity_type}_activity_logged", $entity, $activity ); -
do_action( "flycrm_{$entity_type}_tag_attached", $this, $tag ); -
do_action( "flycrm_{$entity_type}_tag_detached", $this, $tag ); -
do_action( "flycrm_{$entity_type}_address_added", $this, $address ); -
do_action( "flycrm_{$entity_type}_addresses_deleted", $this ); -
do_action( "flycrm_{$entity_type}_tags_synced", $this, $tag_ids ); -
do_action( "flycrm_{$entity_type}_task_created", $this, $task ); -
do_action( "flycrm_{$entity}_status_changed", $this, $new_status, $old_status ); -
apply_filters( 'flycrm_document_page_template', __DIR__ . '/templates/document-page.php', $document ); -
apply_filters( 'flycrm_settings_defaults', $defaults ); -
apply_filters( 'flycrm_show_branding', false ); -
do_action( 'flycrm_woocommerce_order_completed', $contact, $order );
Generated from FlyCRM's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: