How redirect after logout to home page in wocommerce? / Wocommerce में लैगआउट के बाद होम पेज पर कैसे रीडायरेक्ट करें ?

How Redirect After Logout To Home Page In Wocommerce? / Wocommerce में लैगआउट के बाद होम पेज पर कैसे रीडायरेक्ट करें ?

Step 1:

First login to the dashboard./ सबसे पहले डैशबोर्ड में लॉग इन करें।



Step 2:

Go to Appearance Option> Theme Editor./ अपीयरेंस ऑप्शन> थीम एडिटर पर जाएं |

How redirect after logout to home page in wocommerce?


Step 3:

After we select the option function.php/ function.php चयन  करे ।

How redirect after logout to home page in wocommerce?

Step 4:

Paste the following code in function.php/ निम्नलिखित कोड को function.php में पेस्ट करें  ।
add_action('wp_logout','auto_redirect_after_logout');

function auto_redirect_after_logout(){

  wp_redirect( home_url() );
  exit();

}
How redirect after logout to home page in wocommerce?

 Step 4:

At last click on update file./ आखिर में अपडेट फाइल पर क्लिक करें।

How redirect after logout to home page in wocommerce?

Previous
Next Post »

1 comments:

Click here for comments
Unknown
admin
September 29, 2021 at 4:35 PM ×

Thanks For sharing this information

Congrats bro Unknown you got PERTAMAX...! hehehehe...
Reply

Please do not entering spam link in the comment box ConversionConversion EmoticonEmoticon