Redirect users to the login screen if the user isn’t logged in.


/**
 * Redirect users to the login screen if not logged in.
 *
 * @since 2.3.0
 *
 * @param string $login_url The login URL.
 *
 * @return string The login URL.
 */
apply_filters( 'pmpro_member_profile_edit_preheader_redirect', pmpro_login_url() );

Parameters

$login_url
string

Return Value

Login URL


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/preheaders/member-profile-edit.php

View in Source Code