Αυτό το πρόσθετο δεν έχει δοκιμασθεί με τις 3 τελευταίες κύριες εκδόσεις του WordPress. Μπορεί να μην αναπτύσσεται ή να υποστηρίζεται άλλο και να έχει προβλήματα συμβατότητας με τις πιο πρόσφατες εκδόσεις του WordPress.

Log Out Password Protected Posts

Περιγραφή

There is no built-in way for your visitors to “log out” of password protected posts once they’ve entered the password. Even logged in users cannot log out of password protected posts by logging out of their account. This plugin solves that problem by providing a link for your visitors to log out of password protected posts.

Setup

After installing the plugin, add the following code somewhere in your theme to display a link for logging out of password protected posts:

<?php do_action( 'posts_logout_link' ); ?>

Στιγμιότυπα

  • The link in action 1

  • The link in action 2

Συχνές Ερωτήσεις

I can’t see a link to log out. What’s up?

Have you added the template tag somewhere in your theme? You need to add <?php do_action( 'posts_logout_link' ); ?> somewhere in your theme for the link to show up.

I’ve added the template tag to my theme but I can’t see the log out link. What’s up?

Ensure that you have entered a password for a password protected post. The link will not show up if you’re not logged into a password protected post.

Can I change the default text in the link?

Sure. Add a second parameter to the template tag with the text you’d like instead. For example: <?php do_action( 'posts_logout_link', 'Log out!' ); ?>

For those who want even more control, you can also add a third paramter which will be used as the class name on the link element.

Κριτικές

Δεν υπάρχουν αξιολογήσεις για αυτό το πρόσθετο.

Συνεισφέροντες & Προγραμματιστές

“Log Out Password Protected Posts” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

Σύνοψη αλλαγών

0.2

  • Better compatibility with the post password system WordPress 3.4.
  • Only show the log out link on posts which are password protected.

0.1

  • Initial release.