WP Fusion Lite 3.48.3 has 62 actions and 158 filters, read directly from its source code on Nov 20, 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 WP Fusion Lite fires an action
add_action( 'wpf_tags_modified', function( $user_id, $tags ) {
// Your code runs here.
}, 10, 2 );
// Change a value WP Fusion Lite is about to use
add_filter( 'wpf_user_can_access', function( $can_access, $user_id, $post_id ) {
// Change $can_access here.
return $can_access;
}, 10, 3 );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.
Changes by version
All hooks
-
/** * Determine whether a user can access a post. */ apply_filters( 'wpf_user_can_access', $can_access, $user_id, $post_id ); -
/** * Triggers after tags are loaded for a user, contains all of the user's tags */ do_action( 'wpf_tags_modified', $user_id, $tags ); -
/** * Format field value. */ apply_filters( 'wpf_format_field_value', $user_meta[ $field ], $field_data['type'], $field_data['crm_field'], $update_data ); -
/** * This filter is used in the CRM integrations to link up default field * pairings. We used to use wpf_initialize_options but that doesn't work since * it runs before any new fields are added by the wpf_meta_fields filter * (above). This filter will likely be removed in a future update when we * standardize how standard fields are managed. */ apply_filters( 'wpf_initialize_options_contact_fields', $this->options ); -
/** * Allow modification of the loaded data. */ apply_filters( 'wpf_pulled_user_meta', $user_meta, $user_id ); -
/** * Query filtering mode. */ apply_filters( 'wpf_query_filtering_mode', $setting, $query ); -
/** * Triggers after tags are loaded for the user, contains just the new tags that * were applied */ do_action( 'wpf_tags_applied', $user_id, $tags_applied ); -
/** * Triggers after tags are loaded for the user, contains just the tags that no * longer are present */ do_action( 'wpf_tags_removed', $user_id, $tags_removed ); -
/** * Is post type eligible for query filtering? */ apply_filters( 'is_post_type_eligible_for_query_filtering', $is_eligible, $post_types ); -
/** * This filter is documented in wp-includes/template-loader.php */ apply_filters( 'template_include', $template ); -
/** * Init. */ do_action( 'wp_fusion_init' ); -
/** * Init CRM. */ do_action_ref_array( 'wp_fusion_init_crm', array( &self::$instance->crm ) ); -
/** * Fires when access is denied with a 404 Not Found response. */ do_action( 'wpf_access_denied_404', $post_id ); -
/** * Allows filtering the API arguments before they are sent to the CRM. */ apply_filters( "wpf_api_{$method}_args", $args ); -
/** * Fires after an API call is made. */ do_action( "wpf_api_did_{$method}", $args, $contact_id, $result ); -
/** * Allows bypassing the API call, for example if a required dependency was * deactivated. */ apply_filters( 'wpf_api_preflight_check', true, $method, $args ); -
/** * Filters the tags to be applied to the user. */ apply_filters( 'wpf_apply_tags', $tags, $user_id ); -
/** * Triggers before tags are applied to the user. */ do_action( 'wpf_apply_tags_start', $user_id, $tags ); -
/** * Allows the IP address of the client to be modified. */ apply_filters( 'wpf_ip_address', $ip ); -
/** * Whether MailerLite webhooks should be processed asynchronously. */ apply_filters( 'wpf_mailerlite_webhook_async', $post_data['async'], $post_data ); -
/** * Filters the available meta fields. */ apply_filters( 'wpf_meta_fields', $field['choices'] ); -
/** * Filters the longest wait, in seconds, before retrying a rate limited * Omnisend request. */ apply_filters( 'wpf_omnisend_max_retry_after', 10 ); -
/** * Filters whether WP Fusion uses the legacy Omnisend v3 API. */ apply_filters( 'wpf_omnisend_use_legacy_api', (bool) wpf_get_option( 'omnisend_legacy_api' ) ); -
/** * By default WP Fusion will not send an API call to apply tags that a user * already has. This can be overridden here. */ apply_filters( 'wpf_prevent_reapply_tags', wpf_get_option( 'prevent_reapply', true ) ); -
/** * Query get post args. */ apply_filters( 'wpf_query_filter_get_posts_args', $args ); -
/** * Filters the tags to be removed from the user */ apply_filters( 'wpf_remove_tags', $tags, $user_id ); -
/** * Triggers before tags are removed from the user */ do_action( 'wpf_remove_tags_start', $user_id, $tags ); -
/** * Allow modification of the data. */ apply_filters( 'wpf_set_user_meta', $user_meta, $user_id ); -
/** * Should filter query? */ apply_filters( 'wpf_should_filter_query', true, $query ); -
/** * Filters whether a tag AJAX request is treated as coming from this site. */ apply_filters( 'wpf_tags_ajax_request_allowed', $allowed ); -
/** * Allow modification of the registration data. */ apply_filters( 'wpf_user_register', $post_data, $user_id ); -
do_action( 'wpf_sync' ); -
apply_filters( "wpf_{$this->slug}_auth_url", add_query_arg( $args, 'https://wpfusion.com/oauth/' ) ); -
apply_filters( 'wpf_salesforce_query_args', $query_args, 'get_contact_id', $email_address ); -
apply_filters( 'wpf_crm_object_type', wpf_get_option( 'dynamics_365_object_type', $this->object_type ) ); -
apply_filters( 'wpf_user_tags', $user_tags, $user_id ); -
apply_filters( 'wpf_get_tag_id', $tag_name, $tag_name ); -
apply_filters( 'wpf_get_tag_label', $tag_id, $tag_id ); -
apply_filters( 'wpf_get_user_meta', array(), $user_id ); -
apply_filters( 'wpf_sanitize_meta_box', $_POST['wpf-settings'] ); -
apply_filters( 'wpf_user_can_access_archive', false, $user_id, $term_id ); -
apply_filters( "{$this->setup['project_slug']}_configure_settings", $this->settings, $this->options ); -
apply_filters( 'wpf_post_type_rules', $settings ); -
apply_filters( 'wpf_redirect_url', $redirect, $post_id ); -
apply_filters( 'wpf_salesforce_auth_url', 'https://login.salesforce.com/services/oauth2/token' ); -
apply_filters( "{$this->identifier}_cron_interval", wpf_get_option( 'cron_interval', 5 ) ); -
apply_filters( "default_field_{$setting['type']}", $setting ); -
apply_filters( "wpf_api_{$method}_result", $result, $args ); -
apply_filters( 'wpf_auto_login_query_var', 'cid' ); -
apply_filters( 'wpf_contact_id', $contact_id, $email_address ); -
apply_filters( 'wpf_hubspot_redirect_uri', 'https://wpfusion.com/oauth/?action=wpf_get_hubspot_token' ); -
apply_filters( 'wpf_import_user_role', $role, $user_id ); -
apply_filters( 'wpf_infusionsoft_query_args', $query_args, 'get_contact_id', $email_address ); -
apply_filters( 'wpf_log_display_message', $message ); -
do_action( 'wpf_log_items_loaded', $results ); -
apply_filters( 'wpf_meta_box_post_types', $supported_post_types ); -
apply_filters( 'wpf_pre_send_contact_data', $data ); -
do_action( 'wpf_resetting_options', $current_options ); -
apply_filters( 'wpf_restrict_content_post_type_object_label', strtolower( $post_type_object->labels->singular_name ), $post ); -
apply_filters( 'wpf_return_after_login_url', $url, $post_id, $user ); -
apply_filters( 'wpf_salesforce_init_auth_url', add_query_arg( $args, 'https://wpfusion.com/oauth/' ) ); -
do_action( 'wpf_settings_notices' ); -
do_action( 'wpf_user_updated', $user_id, $user_meta ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
apply_filters( "{$this->identifier}_memory_utilization_percentage", 0.80 ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
apply_filters( "{$this->setup['project_slug']}_configure_sections", $page, $this->options ); -
do_action( "{$this->setup['project_slug']}_enqueue_scripts" ); -
apply_filters( "{$this->setup['project_slug']}_initialize_options", $this->options ); -
do_action( "before_page_{$page['id']}" ); -
do_action( 'groundhogg/contact_created_from_user', $user, $contact ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( "show_field_{$id}", $id, $setting ); -
do_action( "show_field_{$id}_begin", $id, $setting ); -
do_action( "show_field_{$id}_end", $id, $setting ); -
do_action( "show_field_{$setting['type']}", $id, $setting ); -
do_action( "show_field_{$setting['type']}_begin", $id, $setting ); -
do_action( "show_field_{$setting['type']}_end", $id, $setting ); -
do_action( 'show_field_begin', $id, $setting ); -
do_action( 'show_field_end', $id, $setting ); -
do_action( "show_section_{$section_slug}", $section_slug, $this->settings ); -
apply_filters( "validate_field_{$id}", $input, $setting, $this ); -
apply_filters( "validate_field_{$setting['type']}", $input, $setting, $this ); -
apply_filters( "validate_field_{$setting['type']}_override", $input, $setting, $this ); -
apply_filters( 'wp_fusion_hide_upgrade_nags', false ); -
apply_filters( 'wp_fusion_print_r_alternatives', $alternatives, $expression ); -
apply_filters( "wpf_{$this->slug}_guest_registration_data", $update_data, $email_address, $contact_id ); -
apply_filters( 'wpf_add_contact_lists', wpf_get_option( 'assign_lists', array() ) ); -
apply_filters( 'wpf_admin_override', $override ); -
do_action( 'wpf_admin_profile_tags_edited', $user_id ); -
apply_filters( "wpf_api_{$method}", null, $args ); -
do_action( 'wpf_api_error', $method, $args, $contact_id, $result ); -
do_action( "wpf_api_error_{$method}", $args, $contact_id, $result ); -
do_action( 'wpf_api_success', false, false ); -
apply_filters( 'wpf_apply_tags_on_view', true, $post_id ); -
apply_filters( 'wpf_async_allowed_cookies', array() ); -
apply_filters( 'wpf_auto_login_contact_id', $contact_id ); -
apply_filters( 'wpf_auto_login_cookie_expiration', DAY_IN_SECONDS * 180 ); -
apply_filters( "wpf_batch_{$hook}_args", $args, $objects ); -
apply_filters( "wpf_batch_{$hook}_init", $args ); -
do_action_ref_array( "wpf_batch_{$item[0]}", $item[1] ); -
apply_filters( 'wpf_batch_args', $args, $objects ); -
apply_filters( 'wpf_batch_max_age_hours', 24 ); -
apply_filters( 'wpf_batch_objects', $objects, $args ); -
apply_filters( 'wpf_batch_sleep_time', 2 ); -
apply_filters( 'wpf_begin_redirect', false, wpf_get_current_user_id() ); -
apply_filters( 'wpf_bypass_profile_update', false, wpf_clean( wp_unslash( $_REQUEST ) ) ); -
apply_filters( 'wpf_compatibility_notices', array() ); -
apply_filters( "wpf_configure_setting_{$id}", $setting, $this->options ); -
apply_filters( "wpf_configure_setting_type_{$setting['type']}", $setting, $this->options, $id ); -
apply_filters( 'wpf_contact_fields_save', $input ); -
apply_filters( 'wpf_country_to_iso3166', $value, $name, $format ); -
do_action( 'wpf_crm_loaded', self::$instance->crm ); -
apply_filters( 'wpf_crms', array( 'infusionsoft' => 'WPF_Infusionsoft_iSDK', 'activecampaign' => 'WPF_ActiveCampaign', 'ontraport' => 'WPF_Ontraport', 'drip' => 'WPF_Drip', 'convertkit' => 'WPF_ConvertKit', 'kit' => 'WPF_Kit', 'agilecrm' => 'WPF_AgileCRM', 'salesforce' => 'WPF_Salesforce', 'mautic' => 'WPF_Mautic', 'intercom' => 'WPF_Intercom', 'mailerlite' => 'WPF_MailerLite', 'capsule' => 'WPF_Capsule', 'zoho' => 'WPF_... ); -
apply_filters( 'wpf_datetime_format', $format ); -
apply_filters( 'wpf_disable_crm_field_select4', false ); -
apply_filters( 'wpf_disable_tag_multiselect', false, $args ); -
apply_filters( 'wpf_disable_tag_select4', false ); -
apply_filters( 'wpf_dynamics_365_lookup_field', $lookup_field ); -
apply_filters( 'wpf_end_auto_login', false, $this->auto_login_user ); -
apply_filters( 'wpf_end_auto_login_request_uris', $request_uris ); -
apply_filters( 'wpf_export_options', $options ); -
do_action( 'wpf_filtering_page_content', $post_id ); -
apply_filters( 'wpf_get_contact_id_email', $email_address, $user_id ); -
do_action( 'wpf_get_contact_id_start', $user_id ); -
apply_filters( 'wpf_get_email_from_contact_id', $contact['user_email'], $contact_id ); -
apply_filters( 'wpf_get_marketing_consent_from_email', false, $email ); -
apply_filters( "wpf_get_setting_{$id}", $value ); -
apply_filters( "wpf_get_setting_{$key}", $value ); -
do_action( 'wpf_get_tags_start', $user_id ); -
apply_filters( 'wpf_get_user_id', false, $contact_id ); -
do_action( 'wpf_get_user_id_start', $contact_id ); -
do_action( 'wpf_got_contact_id', $user_id, $contact_id ); -
do_action( 'wpf_guest_contact_created', $contact_id, $email_address ); -
do_action( 'wpf_guest_contact_updated', $contact_id, $email_address ); -
do_action( 'wpf_handle_log', $timestamp, $level, $user, $message, $context ); -
do_action( "wpf_handle_log_{$level}", $timestamp, $user, $message, $context ); -
apply_filters( 'wpf_hubspot_add_engagement', $body, $contact_id ); -
apply_filters( 'wpf_hubspot_auth_url', $auth_url ); -
apply_filters( 'wpf_hubspot_lists_api_mode', $mode ); -
apply_filters( 'wpf_hubspot_max_retry_after', 10 ); -
apply_filters( 'wpf_hubspot_migration_option_definitions', $definitions ); -
apply_filters( 'wpf_hubspot_migration_postmeta_tag_keys', $keys ); -
apply_filters( 'wpf_hubspot_migration_termmeta_tag_keys', $keys ); -
apply_filters( 'wpf_hubspot_migration_wpf_option_tag_keys', $keys ); -
apply_filters( 'wpf_hubspot_v1_lists_cutoff', '2026-04-30 23:59:59 UTC' ); -
apply_filters( 'wpf_import_user', $user_meta, $contact_id ); -
apply_filters( 'wpf_integrations', array( 'edd' => 'Easy_Digital_Downloads', 'edd-recurring' => 'EDD_Recurring', 'gravity-forms' => 'GFForms', 'formidable-forms' => 'FrmFormsController', 'woocommerce' => 'WooCommerce', 'woo-subscriptions' => 'WC_Subscriptions_Product', 'woo-memberships' => 'WC_Memberships', 'woo-bookings' => 'WC_Bookings', 'woo-coupons' => 'WC_Smart_Coupons', 'woo-deposits' => 'WC_Deposits', 'woo-addons' => 'WC_... ); -
apply_filters( 'wpf_integrations_theme', array( 'divi' => 'et_setup_theme', 'memberoni' => 'memberoni_llms_theme_support', 'acf' => 'acf', 'bricks' => 'Bricks\Theme', 'thrive-api-connection' => 'Thrive_Dash_List_Manager', ) ); -
apply_filters( 'wpf_is_duplicate_site', $is_duplicate ); -
apply_filters( 'wpf_leadsource_cookie_name', 'wpf_leadsource' ); -
apply_filters( 'wpf_leadsource_vars', $leadsource_vars ); -
apply_filters( 'wpf_loaded_tags', $tags, $user_id, $contact_id ); -
do_action( 'wpf_log_handled', $timestamp, $level, $user, $message, $source, $context ); -
apply_filters( 'wpf_log_max_entries', 10000 ); -
apply_filters( 'wpf_map_meta_fields', $update_data, $user_meta ); -
do_action( 'wpf_meta_box_content', $post, $settings ); -
do_action( "wpf_meta_box_content_{$post->post_type}", $post, $settings ); -
do_action( 'wpf_meta_box_save', $post_id, $settings ); -
apply_filters( 'wpf_meta_field_groups', $field_groups ); -
apply_filters( 'wpf_meta_field_types', $field_types ); -
apply_filters( 'wpf_migration_option_definitions', $definitions ); -
apply_filters( 'wpf_migration_postmeta_tag_keys', $keys ); -
apply_filters( 'wpf_migration_termmeta_tag_keys', $keys ); -
apply_filters( 'wpf_migration_wpf_option_tag_keys', $keys ); -
apply_filters( 'wpf_nationbuilder_token_redirect_uri', 'https://wpfusion.com/oauth/?action=wpf_get_nationbuilder_token' ); -
apply_filters( 'wpf_phone_number_to_e164', $clean_number, $country ); -
do_action( 'wpf_plugin_updated', $version, WP_FUSION_VERSION ); -
apply_filters( 'wpf_post_access_meta', $settings, $post_id ); -
do_action( 'wpf_pre_pull_user_meta', $user_id ); -
do_action( 'wpf_push_user_meta_start', $user_id, $user_meta ); -
do_action( 'wpf_pushed_user_meta', $user_id, $contact_id, $user_meta ); -
apply_filters( 'wpf_query_filter_cache_time', MINUTE_IN_SECONDS, $user_id, $post_types ); -
apply_filters( 'wpf_redirect_post_id', $post->ID ); -
apply_filters( 'wpf_referral_cookie_name', 'wpf_ref' ); -
apply_filters( 'wpf_register_valid_roles', $valid_roles, $user_id, $post_data ); -
apply_filters( 'wpf_render_tag_multiselect_args', $args ); -
apply_filters( 'wpf_restrict_content_checkbox_label', $message, $post ); -
apply_filters( 'wpf_restricted_content_message', $content, $post_id ); -
apply_filters( 'wpf_restricted_terms_for_user', $term_ids, $user_id ); -
do_action( 'wpf_resync_contact', $user_id ); -
apply_filters( 'wpf_return_after_login_post_id', $post_id ); -
apply_filters( 'wpf_salesforce_instance_url', wpf_get_option( 'sf_instance_url' ) ); -
apply_filters( 'wpf_salesforce_lookup_field', $lookup_field ); -
apply_filters( "wpf_set_setting_{$key}", $value ); -
apply_filters( 'wpf_settings_for_meta_box', $settings, $post ); -
do_action( 'wpf_settings_page_before_wrap' ); -
do_action( 'wpf_settings_page_init' ); -
do_action( 'wpf_settings_page_title' ); -
apply_filters( 'wpf_skip_auto_login', false, $this->auto_login_user ); -
apply_filters( 'wpf_skip_auto_login_request_uris', array() ); -
do_action( 'wpf_started_auto_login', $this->auto_login_user['user_id'], $contact_id ); -
apply_filters( 'wpf_taxonomy_rules', $rules ); -
apply_filters( 'wpf_use_api_queue', $enabled, $method, $args ); -
apply_filters( 'wpf_user_can_access_block', $can_access, $attributes ); -
apply_filters( 'wpf_user_can_access_gutenberg', $can_access, $attributes ); -
apply_filters( 'wpf_user_can_access_post_id', $post_id ); -
apply_filters( 'wpf_user_can_access_post_type', $can_access, $user_id, $post_type ); -
apply_filters( 'wpf_user_can_access_term', $can_access, $user_id, $post_id ); -
apply_filters( 'wpf_user_can_access_widget', $can_access, $instance, $widget ); -
do_action( 'wpf_user_created', $user_id, $contact_id, $post_data ); -
apply_filters( 'wpf_user_has_tag', $tags, $user_id ); -
do_action( 'wpf_user_imported', $user_id, $user_meta ); -
apply_filters( 'wpf_user_meta_shortcode_value', $value, $atts['field'] ); -
do_action( 'wpf_user_meta_updated', $user_id, $key, $value ); -
do_action( 'wpf_user_profile_after_contact_id', $user->ID ); -
do_action( 'wpf_user_profile_after_table_rows', $user ); -
do_action( 'wpf_user_profile_before_table_rows', $user ); -
do_action( 'wpf_user_register_start', $user_id, $post_data ); -
apply_filters( 'wpf_user_update', $user_meta, $user_id ); -
apply_filters( 'wpf_users_list_filter_options', $filter_options ); -
apply_filters( 'wpf_users_list_meta_query', $meta_query, $filter ); -
apply_filters( 'wpf_watched_meta_fields', array() ); -
do_action( 'wpf_webhook_safe_import_complete', $user_id, $args ); -
apply_filters( 'wpf_wp_kses_allowed_html', wp_kses_allowed_html( 'post' ) ); -
apply_filters( 'wpf_zoho_auth_url', $auth_url );
Generated from WP Fusion Lite'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: