Core
Source
File: classes/Core.php
class Core { public function __construct() { add_filter( 'logout_url', [ $this, 'redirect_url' ] ); //redirect_back_after_logout } public function redirect_url( $logout_url ) { if ( dozent_get_option( 'redirect_back_after_logout' ) ) { $logout_url = add_query_arg( [ 'redirect_to' => dozent_get_current_url() ], $logout_url ); } return $logout_url; } }