miniOrange 2FA 6.6.1 has 11 actions and 12 filters, read directly from its source code on Nov 17, 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 miniOrange 2FA fires an action
add_action( 'mo2f_enterprise_plan_settings_action', function( $arg1, $post ) {
// Your code runs here.
}, 10, 2 );
// Change a value miniOrange 2FA is about to use
add_filter( 'mo2f_is_lv_needed', 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
-
mo2f_is_lv_needed
filter/** * Including the file for frontend. */ apply_filters( 'mo2f_is_lv_needed', false ); -
/** * Via that, you can change the grace period TTL. */ apply_filters( 'mo2f_allow_grace_period_in_seconds', false ); -
do_action( 'mo2f_enterprise_plan_settings_action', 'save_custom_redirection_urls', $post ); -
apply_filters( 'mo2f_basic_plan_settings_filter', $twofactor_transactions->check_alluser_limit_exceeded( $mo2f_user->ID ), 'is_user_limit_exceeded', array() ); -
do_action( 'mo2f_all_inclusive_plan_settings_action', 'mo2f_save_login_form_settings', $_POST ); -
do_action( 'mo2f_basic_plan_settings_action', 'mo2f_save_custom_registration_form_settings', $_POST ); -
apply_filters( 'mo2f_enterprise_plan_settings_filter', array(), 'mo2f_get_all_users_rba_details', array() ); -
authenticate
filterapply_filters( 'authenticate', null, $username, $password ); -
wp_login
actiondo_action( 'wp_login', $currentuser->user_login, $currentuser ); -
admin_head
actiondo_action( 'admin_head' ); -
admin_print_scripts
actiondo_action( 'admin_print_scripts' ); -
admin_print_styles
actiondo_action( 'admin_print_styles' ); -
do_action( 'mo2f_get_license_varification_screen' ); -
mo2f_network_create_db
actiondo_action( 'mo2f_network_create_db' ); -
apply_filters( 'mo2f_otp_send_cooldown_seconds', 15 ); -
mo2f_otp_send_daily_cap
filterapply_filters( 'mo2f_otp_send_daily_cap', 200 ); -
mo2f_otp_send_hourly_cap
filterapply_filters( 'mo2f_otp_send_hourly_cap', 5 ); -
apply_filters( 'mo2f_page_protection_addon_filter', false, 'mo2f_page_protection_update_details', array( 'user_id' => $user_id ) ); -
do_action( 'mo2f_page_protection_addon_settings_action', 'mo2f_enable_page_protection', $_POST ); -
mo2f_rld
actiondo_action( 'mo2f_rld' ); -
mo2f_wizard_default_steps
filterapply_filters( 'mo2f_wizard_default_steps', $wizard_steps ); -
plugin_locale
filterapply_filters( 'plugin_locale', $locale, 'miniorange-2-factor-authentication' );
Generated from miniOrange 2FA's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: