Action
rpress_login_form_logged_in
Fires in the login shortcode when the visitor is already logged in.
Runs in place of the login form for a logged-in user. RestroPress hooks a callback here that prints an already-logged-in notice, so a callback that echoes will add to that notice.
Example#
add_action( 'rpress_login_form_logged_in', 'my_rpress_login_form_logged_in' );
function my_rpress_login_form_logged_in() {
echo '<p>' . esc_html__( 'Manage your account from the menu.', 'my-textdomain' ) . '</p>';
}
Notes#
RestroPress adds its own callback on this hook to print the logged-in message.
Source#
Fired from:
templates/shortcode-login.php(line 71)
Was this page helpful?
