Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Login to read more

Display content enclosed by the shortcode for registered users only.

Display content enclosed by the shortcode for registered users only.

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



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

Requires: 3.5 or higher
Compatible up to: 3.5.2
Last Updated: 4 years ago
Active Installs: 200+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.