codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
/** * Checks if a user is logged in, if not redirect them to the login page. */ function appthemes_auth_redirect_login() { if ( !is_user_logged_in() ) { nocache_headers(); wp_redirect( wp_login_url( scbUtil::get_current_url() ) ); exit(); } }
Private
[
?
]
Run code
Submit