Tribe__Events__Community__Main::logout_url()
Get the appropriate logout URL for the current user.
Return
(string) The logout URL.
Source
File: src/Tribe/Main.php
public function logout_url() { if ( $this->user_can_access_admin() ) { $redirect = ''; } else { $redirect = wp_validate_redirect( trailingslashit( $this->blockRolesRedirect ), home_url() ); } return wp_logout_url( $redirect ); }
Changelog
Version | Description |
---|---|
3.1 | Introduced. |