Skip to content
WordPress.org

Norsk (Nynorsk)

  • Bunader
  • Innstikk
  • News
  • Om
  • Bidra til nynorskomsetjinga
  • Remembers
  • Blocks
  • Kontakt oss
  • Education
  • WP-CLI
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Login to read more

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

Login to read more

Av Takayuki Miyauchi
Last ned
  • Detaljar
  • Omtalar
  • Installasjon
  • Utvikling
Hjelp

Skildring

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

Skjermbilete

Visual Editor.
Visual Editor.
Short code output.
Short code output.

Installasjon

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

Omtalar

There are no reviews for this plugin.

Bidragsytarar og utviklarar

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

Contributors
  • Takayuki Miyauchi

Omset “Login to read more” til ditt eige språk.

Interested in development?

Les kjeldekoden, sjekk SVN-lageret eller abonner på utviklingsloggen med RSS.

Om

  • Version 0.2.0
  • Last updated 13 år sidan
  • Active installations 30+
  • WordPress version 3.5 eller nyare
  • Tested up to 3.5.2
  • Language
    English (US)
  • Tags
    loginmemberpostregistershortcode
  • Avansert vising

Vurderingar

5 out of 5 stars.
  • 1 5-star review 5 stars 1
  • 0 4-star reviews 4 stars 0
  • 0 3-star reviews 3 stars 0
  • 0 2-star reviews 2 stars 0
  • 0 1-star reviews 1 star 0

Your review

See all reviews

Contributors

  • Takayuki Miyauchi

Hjelp

Har du noko å seia? Treng du hjelp?

Sjå hjelpeforumet

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Norsk (Nynorsk)

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Kode er poesi.
The WordPress® trademark is the intellectual property of the WordPress Foundation.