Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('init','possibly_redirect');
- function possibly_redirect(){
- global $pagenow;
- if( 'wp-login.php' == $pagenow ) {
- wp_redirect('http://google.com/');
- exit();
- }
- }
- /* שינוי עמוד התחברות *//**
- /*התחברות*/
- function possibly_redirect(){
- global $pagenow;
- if( 'wp-login.php' == $pagenow ) {
- if ( isset( $_POST['wp-submit'] ) || // this is line 33
- else wp_redirect( home_url('/%D7%94%D7%AA%D7%97%D7%91%D7%A8/') ); // or wp_redirect(home_url('/login'));
- exit();
- }
- }
- add_action('init','possibly_redirect');
- /*התנתקות*/
- function possibly_redirect(){
- global $pagenow;
- if( 'wp-login.php' == $pagenow ) {
- if ( isset($_GET['action']) && $_GET['action']=='logout') || // in case of LOGOUT
- else wp_redirect( home_url() ); // or wp_redirect(home_url('/login'));
- exit();
- }
- }
- add_action('init','possibly_redirect');
- /*איפוס יסמא*/
- function possibly_redirect(){
- global $pagenow;
- if( 'wp-login.php' == $pagenow ) {
- if ( isset($_GET['checkemail']) && $_GET['checkemail']=='confirm') || // in case of LOST PASSWORD
- else wp_redirect( home_url('/%D7%90%D7%99%D7%A4%D7%95%D7%A1-%D7%A1%D7%99%D7%A1%D7%9E%D7%90/') ); // or wp_redirect(home_url('/login'));
- exit();
- }
- }
- add_action('init','possibly_redirect');
- /*הרשם*/
- function possibly_redirect(){
- global $pagenow;
- if( 'wp-login.php' == $pagenow ) {
- if ( isset($_GET['checkemail']) && $_GET['checkemail']=='registered') ) return; // in case of REGISTER
- else wp_redirect( home_url('/%D7%94%D7%A8%D7%A9%D7%9E%D7%94/') ); // or wp_redirect(home_url('/login'));
- exit();
- }
- }
- add_action('init','possibly_redirect');
- Parse error: syntax error, unexpected T_ELSE in /home/content/11/9595411/html/luachmodaot/wp-content/themes/boozurk/functions.php on line 33
- function possibly_redirect(){
- global $pagenow;
- if( 'wp-login.php' == $pagenow ) {
- if ( $_POST['wp-submit'] ) { // this is line 33 - the error was telling you had a open statement....syntax for if statement : if( ) { } else { }
- wp_redirect( home_url('/%D7%94%D7%AA%D7%97%D7%91%D7%A8/') ); // or wp_redirect(home_url('/login'));
- exit();
- }
- if( 'wp-login.php' == $pagenow ) {
- if ( $_GET['action']=='logout') { // in case of LOGOUT
- wp_redirect( home_url() ); // or wp_redirect(home_url('/login'));
- exit();
- }
- }
- if( 'wp-login.php' == $pagenow ) {
- if ( $_GET['checkemail']=='confirm') { // in case of LOST PASSWORD
- wp_redirect( home_url('/%D7%90%D7%99%D7%A4%D7%95%D7%A1-%D7%A1%D7%99%D7%A1%D7%9E%D7%90/') ); // or wp_redirect(home_url('/login'));
- exit();
- }
- }
- if( 'wp-login.php' == $pagenow ) {
- if ( $_GET['checkemail']=='registered' ) { //return;---> use in function only!!!!!!!!
- wp_redirect( home_url('/%D7%94%D7%A8%D7%A9%D7%9E%D7%94/') ); // or wp_redirect(home_url('/login'));
- exit();
- }
- }
- }
- add_action('init','possibly_redirect');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement