Aslansheed Login 1.2.0 has 5 actions and 11 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 Aslansheed Login fires an action
add_action( 'aslansheed_otp_registration_saved', function( $user, $parsed, $details ) {
// Your code runs here.
}, 10, 3 );
// Change a value Aslansheed Login is about to use
add_filter( 'aslansheed_otp_allow_classic_login', 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 action is documented in includes/auth/class-flow.php. */ do_action( 'aslansheed_otp_registration_saved', $user, $parsed, $details ); -
/** * Fires after a user linked a verified phone number. */ do_action( 'aslansheed_otp_phone_linked', (int) $user_id, $phone ); -
/** * Lets other code keep the classic login working, for example for a * single-sign-on plugin that posts to wp-login.php. */ apply_filters( 'aslansheed_otp_allow_classic_login', false ); -
/** * Lets other code block a sign-in, for example for suspended accounts. */ apply_filters( 'aslansheed_otp_can_login', true, $user, $method ); -
/** * Filters the list of delivery channels. */ apply_filters( 'aslansheed_otp_channels', array() ); -
/** * Filters the detected client IP address. */ apply_filters( 'aslansheed_otp_client_ip', $ip ); -
/** * Filters the user found for an identifier. Lets other plugins add lookups. */ apply_filters( 'aslansheed_otp_find_user', $user, $parsed ); -
/** * Fires after the plugin signed a user in. */ do_action( 'aslansheed_otp_logged_in', $user, $method ); -
/** * Filters the base difficulty of the built-in check, in leading zero bits. */ apply_filters( 'aslansheed_otp_pow_bits', self::BASE_BITS ); -
/** * Filters the list of SMS providers. */ apply_filters( 'aslansheed_otp_sms_providers', $list ); -
/** * Filters whether a user may change or remove their verified phone number. */ apply_filters( 'aslansheed_otp_user_can_change_phone', $allowed, (int) $user_id ); -
/** * Fires after the plugin created a user. */ do_action( 'aslansheed_otp_user_registered', $user, $parsed ); -
/** * This filter is documented in wp-login.php. */ apply_filters( 'login_redirect', $target, $requested, $user ); -
/** * This action is documented in wp-includes/user.php. */ do_action( 'wp_login', $user->user_login, $user ); -
apply_filters( 'aslansheed_otp_http_reject_unsafe_urls', true, $url ); -
apply_filters( 'aslansheed_otp_max_delivery_attempts', 2 );
Generated from Aslansheed Login'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: