Integration with WorkOS 1.0.13 has 27 actions and 39 filters, read directly from its source code on Nov 19, 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 Integration with WorkOS fires an action
add_action( 'workos_redirect_skipped', function( $user, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Integration with WorkOS is about to use
add_filter( 'workos_authkit_body_classes', function( $value, $profile ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
/** * Fires when role-based redirect is skipped. */ do_action( 'workos_redirect_skipped', $user, 'filtered_out' ); -
/** * Fires after a user's local organization membership is added, changed or * removed. */ do_action( 'workos_org_membership_changed', $user_id ); -
/** * This action is documented in Auth/Login.php */ do_action( 'workos_user_authenticated', $wp_user->ID, $workos_response ); -
/** * Fires after an email change is committed to WorkOS + WP. Shared with the * verified-confirm path so downstream observers don't have to special-case how * the change was authorized. */ do_action( 'workos_change_email_confirmed', (int) $user->ID, $old_email, $new_email ); -
/** * Fires when role-based logout redirect is skipped. */ do_action( 'workos_logout_redirect_skipped', $user, 'filtered_out' ); -
/** * Fires on WP login. */ do_action( 'wp_login', $wp_user->user_login, $wp_user ); -
/** * Fires when a WorkOS user is linked to one WP user while its email belongs to * another. */ do_action( 'workos_account_split_detected', (int) $linked->ID, (int) $holder->ID, $workos_user, $source, $refuse ); -
/** * Fires after an activity event is logged. */ do_action( 'workos_activity_logged', $event_type, $data ); -
/** * Filters the CSS classes applied to the AuthKit full-page <body>. */ apply_filters( 'workos_authkit_body_classes', [ 'workos-authkit-body', 'workos-profile-' . $profile->get_slug() ], $profile ); -
/** * Filters the resolved branding for an AuthKit render. */ apply_filters( 'workos_authkit_branding', $resolved, $profile ); -
/** * Fires after the AuthKit bundle is enqueued for a profile. */ do_action( 'workos_authkit_enqueue_assets', $profile ); -
/** * Filters the profile data sent to the React shell. */ apply_filters( 'workos_authkit_profile_data', $profile_data, $profile ); -
/** * Fires when login bypass is activated. */ do_action( 'workos_bypass_activated' ); -
/** * Filter whether the current bypass attempt should be allowed. */ apply_filters( 'workos_bypass_check', true ); -
/** * Filter whether login bypass is enabled. */ apply_filters( 'workos_bypass_enabled', false ); -
/** * Filter whether the current request can initiate a change for a given target. */ apply_filters( 'workos_change_email_can_initiate', true, $target_id, get_current_user_id() ); -
/** * Fires after a pending change is cancelled. */ do_action( 'workos_change_email_cancelled', (int) $user->ID, $by_token ? 'token' : 'capability' ); -
/** * Fired before the policy is enforced so other features (notably the future * merge flow in Issue 2) can observe the collision. */ do_action( 'workos_change_email_conflict_detected', (int) $target->ID, $new_email, (int) $existing->ID, $policy ); -
/** * Filter the change-email conflict policy at request time. */ apply_filters( 'workos_change_email_conflict_policy', $option ); -
/** * Filter whether the change-email feature is active. */ apply_filters( 'workos_change_email_enabled', $enabled ); -
/** * Fires after a pending email change is stored and notifications sent. */ do_action( 'workos_change_email_initiated', (int) $user->ID, $new_email, get_current_user_id() ); -
/** * Fired when the conflict policy is `merge_request`. The future merge feature * (Issue 2) subscribes here. Until that lands the request still rejects, * mirroring `block`. */ do_action( 'workos_change_email_merge_requested', (int) $target->ID, $new_email, (int) $existing->ID ); -
/** * Filter whether change-email notices fan out to the old address. */ apply_filters( 'workos_change_email_notify_old_address', $enabled ); -
/** * Filter the change-email token lifetime in seconds. */ apply_filters( 'workos_change_email_token_lifetime', $lifetime ); -
/** * Filter the rendered email body before sending. */ apply_filters( 'workos_email_body', $body, $template, $context ); -
/** * Filter the headers used for plugin-sent emails. */ apply_filters( 'workos_email_headers', $headers, $template, $context ); -
/** * Filter the email subject line before sending. */ apply_filters( 'workos_email_subject', $subject, $template, $context ); -
/** * Filter whether the user passes the entitlement check. */ apply_filters( 'workos_entitlement_check', null, $user_id, $workos_data ); -
/** * Filter whether the entitlement gate is enabled. */ apply_filters( 'workos_entitlement_gate_enabled', $enabled ); -
/** * Filter the admin-ajax actions a user the gate blocks may still call. */ apply_filters( 'workos_identity_gate_ajax_actions', [ 'heartbeat' ] ); -
/** * Filter whether a front-end request goes through for a user the gate blocks. */ apply_filters( 'workos_identity_gate_allow_request', $allowed ); -
/** * Filter whether a REST route goes through for a user the gate blocks. */ apply_filters( 'workos_identity_gate_allow_rest_route', $allowed, $route ); -
/** * Filter whether a signed-in user may skip the linked-identity gate. */ apply_filters( 'workos_identity_gate_exempt', user_can( $user, 'manage_options' ), $user ); -
/** * Filter the heading of the "Connect your account" page. */ apply_filters( 'workos_identity_gate_heading', __( 'Connect your account', 'integration-workos' ) ); -
/** * Filter the message shown on the "Connect your account" page and returned * with REST and AJAX errors. */ apply_filters( 'workos_identity_gate_message', $message, $user ); -
/** * Fires when a login is denied by the entitlement gate. */ do_action( 'workos_login_denied', $user_id, $reason, $workos_data ); -
/** * Fires after a Login Profile is deleted. */ do_action( 'workos_login_profile_deleted', $profile ); -
/** * Fires after a Login Profile is saved. */ do_action( 'workos_login_profile_saved', $saved ); -
/** * Fires just before the role-based logout redirect is applied. */ do_action( 'workos_logout_redirect_before', $role_url, $user ); -
/** * Whether role-based logout redirect should apply at all for this request. */ apply_filters( 'workos_logout_redirect_should_apply', true, $user, $redirect_to ); -
/** * Final logout redirect URL for a specific user. */ apply_filters( 'workos_logout_redirect_url', $role_url, $user, $role ); -
/** * The full role→logout redirect URL map from settings. */ apply_filters( 'workos_logout_redirect_urls', $map ); -
/** * Fires just before the role-based redirect is applied. */ do_action( 'workos_redirect_before', $role_url, $user, $is_first_login ); -
/** * Override the per-entry "first login only" setting programmatically. */ apply_filters( 'workos_redirect_first_login_only', $first_login_only, $role, $user ); -
/** * Whether the current redirect_to is considered "explicit" (user-initiated). */ apply_filters( 'workos_redirect_is_explicit', $is_explicit, $redirect_to, $user ); -
/** * Whether role-based redirect should apply at all for this request. */ apply_filters( 'workos_redirect_should_apply', true, $user, $redirect_to ); -
/** * Final redirect URL for a specific user. */ apply_filters( 'workos_redirect_url', $role_url, $user, $role, $is_first_login ); -
/** * The full role→redirect entry map from settings. */ apply_filters( 'workos_redirect_urls', $map ); -
/** * Filters whether a split account refuses the sign-in. */ apply_filters( 'workos_refuse_split_account', true, (int) $linked->ID, (int) $holder->ID, $workos_user, $source ); -
/** * Filter whether Re-link Protection is on. */ apply_filters( 'workos_relink_protection_enabled', $enabled ); -
/** * Filter whether signed-in users must have a linked WorkOS identity. */ apply_filters( 'workos_require_linked_identity', $required ); -
/** * Filters how many members the role sync check reads per query. */ apply_filters( 'workos_role_sync_check_batch_size', self::BATCH_SIZE ); -
/** * Fires when a brand-new WP user is created via WorkOS authentication. */ do_action( 'workos_user_created', $user_id, $workos_user ); -
/** * Filter whether a WP user counts as deactivated, and so can't sign in. */ apply_filters( 'workos_user_is_deactivated', $deactivated, $user_id ); -
/** * Fires when Re-link Protection refuses to move a WP user to a different * WorkOS user. */ do_action( 'workos_user_link_refused', $wp_user_id, $current_id, $workos_user, $source ); -
/** * Fires when a WP user is linked to a WorkOS user it wasn't linked to before. */ do_action( 'workos_user_linked', $wp_user_id, $new_id, $previous_id, $source ); -
/** * Filters the row-action links rendered under the WorkOS column on * `wp-admin/users.php` for a linked user. */ apply_filters( 'workos_user_list_column_actions', $actions, $user_id, $workos_id ); -
/** * Fires for all WorkOS webhook events. */ do_action( 'workos_webhook', $event, $event_type ); -
/** * Fires for a specific WorkOS webhook event type. */ do_action( "workos_webhook_{$event_type}", $event ); -
/** * Filters how long a handled webhook event ID is remembered. */ apply_filters( 'workos_webhook_seen_ttl', 3 * DAY_IN_SECONDS ); -
/** * Fires when any service provider is registered. */ do_action( 'workos/container/registered_provider', [ static::class ] ); -
/** * Fires when a specific service provider is registered. */ do_action( "workos/container/registered_provider:{static::class}", [ static::class ] ); -
apply_filters( 'workos_change_email_orphan_max_inactive_days', self::DEFAULT_ORPHAN_MAX_INACTIVE_DAYS ); -
apply_filters( 'workos_legacy_profile_slug', 'legacy' ); -
do_action( 'workos_webhook_user.updated', $event ); -
apply_filters( 'wp_mail_from', $default );
Generated from Integration with WorkOS'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: