Skip to content
  • Log In
  • Register
WordPress.org

English (New Zealand)

  • Themes
  • Plugins
  • News
  • About
  • Get WordPress
Get WordPress

Plugins

  • My Favourites
  • Beta Testing
  • Developers

This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Download

Login to read more

By Takayuki Miyauchi
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

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

Screenshots

  • Visual Editor.
  • Short code output.

Installation

  • 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.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Login to read more” is open source software. The following people have contributed to this plugin.

Contributors
  • Takayuki Miyauchi

Translate “Login to read more” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Meta

  • Version: 0.2.0
  • Last updated: 10 years ago
  • Active installations: 60+
  • WordPress Version: 3.5 or higher
  • Tested up to: 3.5.2
  • Language:
    English (US)
  • Tags:
    loginmemberpostregistershortcode
  • Advanced View

Ratings

See all
  • 5 stars 1
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0
Log in to submit a review.

Contributors

  • Takayuki Miyauchi

Support

Got something to say? Need help?

View support forum

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org

English (New Zealand)

  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry