HappyAccess 1.1.0 has 5 actions and 13 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 HappyAccess fires an action
add_action( 'happyaccess_grant_ended', function( $ended, $reason ) {
// Your code runs here.
}, 10, 2 );
// Change a value HappyAccess is about to use
add_filter( 'happyaccess_passwordless_allowed', function( $value, $user ) {
// 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 after a grant has ended. */ do_action( 'happyaccess_grant_ended', $ended, $reason ); -
/** * Filters whether a user may log in without a password. This runs last, so it * can also let in a user that another plugin's two-step login would leave out. */ apply_filters( 'happyaccess_passwordless_allowed', ! OtherTwoFactor::user_has_2fa( $user ), $user ); -
/** * Lets code take over sending the request cookie. */ apply_filters( 'happyaccess_passwordless_send_cookie', false, $name, $value, $options ); -
/** * Filters whether a browser login with a correct password goes to the second * step. */ apply_filters( 'happyaccess_twostep_login_request', (bool) $signon, $user ); -
/** * Lets code take over sending a two-step cookie. */ apply_filters( 'happyaccess_twostep_send_cookie', false, $name, $value, $options ); -
/** * Filters whether a user has two-step login from another plugin. Return true * for a plugin HappyAccess doesn't check. */ apply_filters( 'happyaccess_user_has_other_2fa', $has, $user ); -
/** * Overrides the reCAPTCHA result of a login step. */ apply_filters( 'happyaccess_verify_captcha', '' === $reason, $action ); -
do_action( 'wp_login', $user->user_login, $user ); -
apply_filters( 'login_redirect', $default, '', $user ); -
apply_filters( 'happyaccess_cleanup_counts', $counts ); -
apply_filters( 'happyaccess_client_ip', $ip ); -
do_action( 'happyaccess_session_ended', $user_id, $reason ); -
do_action( 'woocommerce_customer_reset_password', $user ); -
apply_filters( 'woocommerce_disable_admin_bar', true ); -
woocommerce_disable_password_change_notification
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'woocommerce_disable_password_change_notification', false ); -
apply_filters( 'woocommerce_login_redirect', $target, $user ); -
apply_filters( 'woocommerce_prevent_admin_access', $prevent ); -
do_action( 'wp_login_failed', $user->user_login, $error );
Generated from HappyAccess'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: