跳到內容
  • 登入
  • 註冊
WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛

  • 我的收藏
  • Beta測試
  • 開發者

這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

下載

Private Content Login Redirect

由Kumar Abhisek
  • 詳情
  • 評價
  • 安裝
  • 開發
支援

描述

Do you post private content? Are you sending those links to your users with private content access?

WordPress by default redirects all non-logged users to a 404(content not found) page when they follow a private post or private page link.Instead of showing a 404 page, this plugin simply redirects those users to the login page.After successful login, it automatically redirects users with private content access to the private content link they followed.

Note: If you post private content and want to get more subscribers to read your private content, I developed a Free plugin for that too…Check out Mini Membership.

If you like this plugin, please consider leaving a review. Thank you!

Follow the developer on Twitter
Visit Developer Website

Download My Other Plugins

  • Mini Membership
  • WP Admin Color Schemes
  • Rainbow Status
  • Restrict Dashboard Access
  • Romance Admin Color Scheme
  • Frame Breaker
  • Inspire Dolly

安裝

  1. Download The Private Content Login Redirect package file, extract the private-content-login-redirect directory from ZIP file, upload it to WordPress Plugins directory ‘/wp-content/plugins/’ or install plugin from Plugin panel in WordPress Dashboard

  2. Activate Private Content Login Redirect via Plugin page

  3. All set

If you are new to WordPress : Installing Plugins

評價

Redirect to login but no back redirection

pleclerc 2017年9月20日
Redirect to login but no back redirection even we guess the wp-login/ url look like to indicate a future redirection. My page have two level./partenaires/annuaire-partenaires/ I look at the developper code, it's really too simple, can cause many problems.

Exactly what I needed!

Gustavo S. Serra 2017年9月9日
Exactly what I needed!

Took me too long to find this simple plugin

frogdogtech 2017年1月31日
This plugin does exactly what it needs to while remaining non-invasive. Utilizes the built in wordpress private page status. Brilliant. Thanks.

Work perfectly!

gtamborero 2016年10月4日
hidden pages goes to login 😉 You can also get the function inside the plugin and use it your functions.php theme: function private_content_redirect_to_login() { global $wp_query,$wpdb; if (is_404()) { $private = $wpdb->get_row($wp_query->request); $location = wp_login_url($_SERVER["REQUEST_URI"]); if( 'private' == $private->post_status ) { wp_safe_redirect($location); exit; } } } add_action('template_redirect', 'private_content_redirect_to_login', 9);

Works as described

smart.u 2016年9月3日
Does it's trick, very helpful, thank you.

Does what it says.

eisgeist 2016年9月3日
I've been searching for a little while for a plug-in doing a simple thing -that IMHO should be part of base WordPress capabilities-: redirect a visitor to login page when he/she tries to access a restricted page. To my needs, it simple and effective.
閱讀全部12個評價

貢獻者及開發者

“Private Content Login Redirect” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • Abhisek

將 Private Content Login Redirect 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

修改日誌

1.0.1

  • Solved Issue: When the plugin Fails to redirect if redirect_canonical() finds a match.(Thanks Dave James Miller for pointing this out)
  • Works with WordPress 4.1.1

其它

  • 版本:1.0.1
  • 最後更新:7 年之前
  • 運作中的安裝:1,000+
  • WordPress Version: 3.0 or higher
  • 已測試到版本:4.6.25
  • 語言:
    English (US)
  • 標籤:
    loginprivate contentredirection
  • 進階顯示

評分

顯示全部
  • 5星 9
  • 4星 1
  • 3星 0
  • 2星 1
  • 1星 1
Log in to submit a review.

貢獻者

  • Abhisek

支援

最近兩個月解決了的問題:

1個中的0個

檢視支援論壇

  • 關於我們
  • 最新消息
  • 寄存
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛
  • 佈景主題
  • 區塊版面配置
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Hong Kong 香港中文

  • 訪問我們的 Facebook 專頁
  • 訪問我們的 Twitter 帳戶
  • Visit our Instagram account
  • Visit our LinkedIn account
代碼就是詩歌。