Skip to content

Commit eb2d7b3

Browse files
committed
Update readme
1 parent 2ddb2b4 commit eb2d7b3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ WordPress plugin to share a link to anonymous users to preview a draft of a post
44

55
Have you ever been writing a post with the help of someone who does not have access to your blog and needed to give them the ability to preview it before publishing? This plugin takes care of that by generating an URL with an expiring nonce that can be given out for public preview.
66

7+
[<kbd> <br> Preview in WordPress Playground <br> </kbd>](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/ocean90/public-post-preview/refs/heads/master/.wordpress-org/blueprints/blueprint.json)
8+
79
<p align="center">
810
<img src="https://ps.w.org/public-post-preview/assets/screenshot-1.png?rev=1981242" alt="" width="400">
911
</p>
@@ -50,13 +52,12 @@ The plugin generates an URL with an expiring nonce. By default a link "lives" 48
5052

5153
**48 hours are not enough to me. Can I extend the nonce time?**
5254

53-
Yes, of course. You can use the filter `ppp_nonce_life`. Example for 5 days:
55+
Yes, of course. Go to Settings > Reading > Public Post Preview and increase the
56+
Expiration Time setting. You can also use the filter `ppp_nonce_life`. Example for 5 days:
5457

55-
```
58+
```php
5659
add_filter( 'ppp_nonce_life', 'my_nonce_life' );
5760
function my_nonce_life() {
5861
return 5 * DAY_IN_SECONDS;
5962
}
6063
```
61-
62-
Or use the [Public Post Preview Configurator](https://wordpress.org/plugins/public-post-preview-configurator/).

readme.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,14 @@ The plugin generates an URL with an expiring nonce. By default a link "lives" 48
5959

6060
**48 hours are not enough to me. Can I extend the nonce time?**
6161

62-
Yes, of course. You can use the filter `ppp_nonce_life`. Example for 5 days:
62+
Yes, of course. Go to Settings > Reading > Public Post Preview and increase the
63+
Expiration Time setting. You can also use the filter `ppp_nonce_life`. Example for 5 days:
6364

6465
`add_filter( 'ppp_nonce_life', 'my_nonce_life' );
6566
function my_nonce_life() {
6667
return 5 * DAY_IN_SECONDS;
6768
}`
6869

69-
Or use the [Public Post Preview Configurator](https://wordpress.org/plugins/public-post-preview-configurator/).
70-
7170
== Changelog ==
7271

7372
= 2.10.0 (2022-11-19): =

0 commit comments

Comments
 (0)