{"id":4568,"date":"2025-02-05T17:41:13","date_gmt":"2025-02-05T17:41:13","guid":{"rendered":"https:\/\/ibex.tech\/wordpress-sites\/?p=4568"},"modified":"2025-02-05T19:04:31","modified_gmt":"2025-02-05T19:04:31","slug":"log-in-for-existing-users","status":"publish","type":"post","link":"https:\/\/ibex.tech\/wordpress-sites\/page-builders\/elementor\/users\/user-signup-and-login\/log-in-for-existing-users","title":{"rendered":"Log in for existing users"},"content":{"rendered":"\n<p>Add the Elementor &#8220;Login&#8221; widget<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Stopping a logged in user seeing the log in page using code<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/************************************************************\n\/\/************************************************************\n\/\/********** HIGH LEVEL FILTERING &amp; VALIDATION HOOK **********\n\/\/************************************************************\n\/\/************************************************************\nadd_action( 'wp', 'mysite_wp' );\nfunction mysite_wp()\n{\n  \n  \/\/-------------------------------------\n  \/\/----- CHECK FOR LOG IN PAGE URL -----\n  \/\/-------------------------------------\n  if($_SERVER&#91;\"REQUEST_URI\"] == '\/log-in')   \/\/&lt;&lt;&lt;The URL the page is set to use\n  {\n    if (is_user_logged_in())\n    {\n      wp_redirect( home_url( '\/' ) );\n      die();\n    }\n  }\n  \n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Add the Elementor &#8220;Login&#8221; widget Stopping a logged in user seeing the log in page using code<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[380],"tags":[],"class_list":["post-4568","post","type-post","status-publish","format-standard","hentry","category-user-signup-and-login"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/comments?post=4568"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4568\/revisions"}],"predecessor-version":[{"id":4582,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/posts\/4568\/revisions\/4582"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/media?parent=4568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/categories?post=4568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/wordpress-sites\/wp-json\/wp\/v2\/tags?post=4568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}