{"id":103196,"date":"2011-09-22T08:00:00","date_gmt":"2011-09-22T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/logged-in\/"},"modified":"2013-04-03T19:56:00","modified_gmt":"2013-04-03T19:56:00","slug":"logged-in","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/logged-in\/","title":{"rendered":"Logged in"},"content":{"rendered":"<p>Allows you to close your site to non-logged in users, by redirecting them to the login page, displaying a message or a specific template file. The plugin can be configured to redirect visitors to login page, display a short message using your themes layout or display a fallback file located in your <code>stylesheet_directory<\/code>.<\/p>\n<h3>Filters<\/h3>\n<p>List of available filters and their expected return values.<\/p>\n<ul>\n<li><code>logged_in_url_is_valid<\/code>: Let\u2019s you validate all URL\u2019s by returning true or false. Parameters indicating validity and URL.<\/li>\n<li><code>logged_in_cb<\/code>: A custom callback to handle the case of users who are not logged in of your choice, instead of using one of the built in actions. You should return a function name or pointer.<\/li>\n<li><code>logged_in_action<\/code>: An action to take when requested URL is not allowed (valid return values are: <code>fallback<\/code>, <code>message<\/code> and <code>login<\/code>).<\/li>\n<li><code>logged_in_redirect_status<\/code>: HTTP redirect status code to use when redirecting to login page. Defaults to 302.<\/li>\n<li><code>logged_in_fallback_filename<\/code>: A fallback file located in your <code>stylesheet_directory<\/code>, used by the <code>fallback<\/code> action.<\/li>\n<li><code>logged_in_fallback_path<\/code>: A full path to the fallback file, used by the <code>fallback<\/code> action.<\/li>\n<li><code>logged_in_message<\/code>: A message displayed by the <code>message<\/code> action.<\/li>\n<li><code>logged_in_login_redirect_url<\/code>: The URL to goto after successful login.<\/li>\n<\/ul>\n<h3>Credits<\/h3>\n<ul>\n<li>Romanian localization by <a href=\"http:\/\/webhostinggeeks.com\/\" rel=\"nofollow ugc\">Web Hosting Geeks<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Allows you to close your site to non-logged in users, by redirecting them to the login page, displaying a message or a specific template file.<\/p>\n","protected":false},"author":65,"featured_media":302473,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Logged in - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Allows you to close your site to non-logged in users, by redirecting them to the login page, displaying a message or a specific template file."},"footnotes":""},"categories":[1],"tags":[8569,424,29571,181,156],"class_list":["post-103196","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-in","tag-log","tag-logged","tag-login","tag-redirect"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/103196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=103196"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/103196\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/302473"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=103196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=103196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=103196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}