{"id":15646231,"url":"https://github.com/ocean90/public-post-preview","last_synced_at":"2025-04-07T09:17:20.534Z","repository":{"id":6805710,"uuid":"8053547","full_name":"ocean90/public-post-preview","owner":"ocean90","description":"WordPress plugin to allow anonymous users to preview a post before it is published.","archived":false,"fork":false,"pushed_at":"2024-12-23T09:51:29.000Z","size":4089,"stargazers_count":56,"open_issues_count":6,"forks_count":28,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T08:08:09.371Z","etag":null,"topics":["wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://wordpress.org/plugins/public-post-preview/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ocean90.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"ocean90"}},"created_at":"2013-02-06T15:12:32.000Z","updated_at":"2025-03-07T20:59:03.000Z","dependencies_parsed_at":"2024-10-03T12:14:31.298Z","dependency_job_id":"03070ebd-1bdd-429c-a057-3ac364f3363f","html_url":"https://github.com/ocean90/public-post-preview","commit_stats":{"total_commits":267,"total_committers":10,"mean_commits":26.7,"dds":"0.18352059925093633","last_synced_commit":"0330bcf750d9c2635b15a10b25c73c4ea7125c4e"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocean90%2Fpublic-post-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocean90%2Fpublic-post-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocean90%2Fpublic-post-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocean90%2Fpublic-post-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocean90","download_url":"https://codeload.github.com/ocean90/public-post-preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247622987,"owners_count":20968575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress","wordpress-plugin"],"created_at":"2024-10-03T12:11:56.423Z","updated_at":"2025-04-07T09:17:20.507Z","avatar_url":"https://github.com/ocean90.png","language":"PHP","funding_links":["https://github.com/sponsors/ocean90"],"categories":[],"sub_categories":[],"readme":"# Public Post Preview\n\nWordPress plugin to share a link to anonymous users to preview a draft of a post (or any other public post type) before it is published.\n\nHave 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.\n\n[\u003ckbd\u003e \u003cbr\u003e Preview stable version in WordPress Playground \u003cbr\u003e \u003c/kbd\u003e](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/ocean90/public-post-preview/refs/heads/master/.wordpress-org/blueprints/blueprint.json)\n\n[\u003ckbd\u003e \u003cbr\u003e Preview development version in WordPress Playground \u003cbr\u003e \u003c/kbd\u003e](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/ocean90/public-post-preview/refs/heads/master/.wordpress-org/blueprints/blueprint-development.json)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\".wordpress-org/screenshot-1.png\" alt=\"\" width=\"400\"\u003e\n\u003c/p\u003e\n\n*This plugin was previously maintained by [Matt Martz](http://profiles.wordpress.org/sivel/) and was an idea of [Jonathan Dingman](http://profiles.wordpress.org/jdingman/).*\n\n## Installation\n\nFor an installation through WordPress:\n\n1. Go to the 'Add New' plugins screen in your WordPress admin area\n1. Search for 'Public Post Preview'\n1. Click 'Install Now' and activate the plugin\n\n\nFor a manual installation via FTP:\n\n1. Upload the `public-post-preview` directory to the `/wp-content/plugins/` directory\n1. Activate the plugin through the 'Plugins' screen in your WordPress admin area\n\n\nTo upload the plugin through WordPress, instead of FTP:\n\n1. Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate.\n\n## Usage\n* To enable a public post preview check the box in the document settings. In the classic editor it's in the \"Publish\" meta box.\n* The link will be displayed if the checkbox is checked, you can copy and share the link with your friends.\n* To disable a preview uncheck the box again.\n\n## Frequently Asked Questions\n\n**I can't find the option for preview links. Where is it?**\n\nThe checkbox is only available for non-published posts and once a post was saved as a draft.\n\n\n**After some time the preview link returns the message \"The link has been expired!\". Why?**\n\nThe plugin generates an URL with an expiring nonce. By default a link \"lives\" 48 hours. After 48 hours the link is expired and you need to copy and share a new link which is automatically generated on the same place under the editor.\n\n\n**48 hours are not enough to me. Can I extend the nonce time?**\n\nYes, of course. Go to Settings \u003e Reading \u003e Public Post Preview and increase the\nExpiration Time setting. You can also use the filter `ppp_nonce_life`. Example for 5 days:\n\n```php\nadd_filter( 'ppp_nonce_life', 'my_nonce_life' );\nfunction my_nonce_life() {\n\treturn 5 * DAY_IN_SECONDS;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focean90%2Fpublic-post-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focean90%2Fpublic-post-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focean90%2Fpublic-post-preview/lists"}