plugin-icon

Login to read more

제작자: Takayuki Miyauchi·
Display content enclosed by the shortcode for registered users only.
등급
5/5
버전
0.2.0
활성화된 설치 항목
40
최근 업데이트일
Jun 27, 2013
Login to read more

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'; }
무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 3.5.2
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.