跳到內容
  • 關於 WordPress
    • 關於 WordPress
    • WordPress.org 香港中文
    • 線上說明
    • 技術支援
    • 意見反應
  • 登入
  • 註冊
WordPress.org
WordPress.org

Hong Kong 香港中文

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

外掛

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

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

下載

Login to read more

由Takayuki Miyauchi
  • 詳情
  • 評價
  • 安裝
  • 支援
  • 開發

描述

Display content enclosed by the shortcode for registered users only.

[auth]This content will display for registered users only[/auth]

https://github.com/miya0001/login-to-read-more

Arguments

  • class – Class name for css. default value is “btn btn-primary btn-large”
  • href – Link URL for button. default value is login url for your site
  • text – Button text. default value is “Login to read more”

The following will add a class as argument.

Example: [auth class="foo"]
Output: <a class="foo" ...>...</a>

The following will change url link.

Example: [auth href="http://example.com/xxx/"]
Output: <a href="http://example.com/xxx/" ...>...</a>

The following will change text.

Example: [auth text="Join"]
Output: <a ...>Join</a>

Filter Hook

  • login_to_read_more_class – Change default class.
  • login_to_read_more_href – Change default url.
  • login_to_read_more_text – Change default text.

The following is example for “login_to_read_more_text” filter.

add_filter('login_to_read_more_text', 'my_login_to_read_more_text');
function my_login_to_read_more_text(){
    return 'Join';
}

螢幕截圖

  • Visual Editor.
  • Short code output.

安裝

  • A plug-in installation screen is displayed on the WordPress admin panel.
  • It installs it in wp-content/plugins.
  • The plug-in is made effective.

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者
  • Takayuki Miyauchi

將 Login to read more 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

其它

  • 版本:0.2.0
  • 最後更新:9 年之前
  • 運作中的安裝:70+
  • WordPress Version: 3.5 or higher
  • 已測試到版本:3.5.2
  • 語言:
    English (US)
  • 標籤:
    loginmemberpostregistershortcode
  • 進階顯示

評分

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

貢獻者

  • Takayuki Miyauchi

支援

有話想說?需要協助?

檢視支援論壇

捐贈

想要支援這個外掛的發展嗎?

贊助這個外掛

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

Hong Kong 香港中文

  • 訪問我們的 Facebook 專頁
  • 訪問我們的 Twitter 帳戶
代碼就是詩歌。