uo_forgot_after_footer
Fires after the footer on the forgot password page, allowing custom additions.
add_action( 'uo_forgot_after_footer', $callback, 10, 1 );
Description
Fires after the forgot password form's footer. Developers can use this action hook to add custom content or functionality immediately following the "Log in instead" link and the form footer. This hook executes after the primary form structure but before the container closure.
Usage
add_action( 'uo_forgot_after_footer', 'your_function_name', 10, 1 );
Examples
<?php
/**
* Example function to add a custom message after the forgot password form footer.
* This is a realistic example of using the 'uo_forgot_after_footer' action hook.
*/
function my_custom_forgot_password_message() {
// In a real scenario, you might want to fetch some data or perform a check.
// For this example, we'll just display a simple static message.
$message = '<p class="custom-forgot-message">If you are still having trouble, please contact support.</p>';
echo $message;
}
// Add the custom function to the 'uo_forgot_after_footer' action hook.
// The second parameter (10) is the priority, and the third parameter (0)
// indicates that this function does not accept any arguments from the hook.
add_action( 'uo_forgot_after_footer', 'my_custom_forgot_password_message', 10, 0 );
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:168
src/templates/frontend-login/layout_1-lost-pwd.php:161
<div class="ult-form-footer__login">
<a id="ult-form-footer-login" href="<?php echo $login_page_url; ?>">
<?php echo $innerText['Log-in-instead']; ?>
</a>
</div>
</div>
<?php do_action( 'uo_forgot_after_footer' ); ?>
</div>
</div>
<?php do_action( 'uo_forgot_after_container' ); ?>