uo_forgot_before_footer
Fires after the forgot password form is submitted but before the footer displays.
add_action( 'uo_forgot_before_footer', $callback, 10, 1 );
Description
Fires before the footer section of the "Forgot Password" form. Developers can use this hook to inject custom content or functionality just before the footer, such as additional links, messages, or scripts, to enhance the user experience on the password recovery page.
Usage
add_action( 'uo_forgot_before_footer', 'your_function_name', 10, 1 );
Examples
add_action( 'uo_forgot_before_footer', 'my_custom_forgot_footer_message', 10 );
/**
* Adds a custom message before the footer of the forgot password form.
*
* This function will display a friendly reminder or additional information
* to users who are trying to reset their password, placed just before the
* footer section of the form.
*
* @param array $args Optional arguments passed to the action hook.
*/
function my_custom_forgot_footer_message( $args = array() ) {
// Check if we are on the correct page context if needed, though this hook is specific.
// For demonstration, let's add a simple message.
?>
<p class="ult-form__footer-message">
Don't see your email? Please check your spam folder.
</p>
<?php
}
Placement
This code should be placed in the functions.php file of your active theme, a custom plugin, or using a code snippets plugin.
Source Code
src/templates/frontend-login/modern_ui-lost-pwd.php:155
src/templates/frontend-login/layout_1-lost-pwd.php:148
</div>
<?php do_action( 'uo_forgot_after_form' ); ?>
<?php } ?>
<?php do_action( 'uo_forgot_before_footer' ); ?>
</div>
<div class="ult-form__footer">
<?php do_action( 'uo_forgot_before_login' ); ?>
<div class="ult-form-footer__login">
<a id="ult-form-footer-login" href="<?php echo $login_page_url; ?>">