Login to read more Icon

Login to read more

By Takayuki Miyauchi

Active Installs

20+

Last Updated

June 27, 2013

First Released

June 26, 2013

Download History (Last one month)


Contributors

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';
}
  • 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.

No FAQ provided.

Changelog

No changelog available.

<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

Available Versions

Version Download Type
0.2.0 Download Stable
0.1.0 Download Stable
Development Download Trunk

Plugin Info

  • Version: 0.2.0
  • Last Updated: June 27, 2013
  • Active Installs: 20+
  • WordPress Version: 3.5 or higher
  • Tested up to: 3.5.2
  • PHP Version: or higher
  • Tags:    
    login member post register shortcode

Ratings


5.0 out of 5 stars. (1 reviews)

See all reviews
Scroll to Top