Action
rpress_profile_editor_logged_out
Fires in the profile editor shortcode when the visitor is logged out.
Runs in place of the profile editor for a logged-out visitor. The template prints nothing else in that case, so a callback here can output a login prompt.
Example#
add_action( 'rpress_profile_editor_logged_out', 'my_rpress_profile_editor_logged_out' );
function my_rpress_profile_editor_logged_out() {
echo '<p>' . esc_html__( 'Please log in to edit your profile.', 'my-textdomain' ) . '</p>';
}
Source#
Fired from:
templates/shortcode-profile-editor.php(line 217)
Was this page helpful?
