| 开发者 | erdincbulat |
|---|---|
| 更新时间 | 2026年6月17日 18:16 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
erdo_draft_links_supported_post_types filter:
add_filter( 'erdo_draft_links_supported_post_types', function( $types ) { $types[] = 'product'; return $types; } );
Source Code
The full source code including build tools is included in the plugin's assets/js/src/ directory.
erdo-draft-links folder to the /wp-content/plugins/ directory.Yes. By default Erdo Draft Links supports posts and pages. Add more post types using the erdo_draft_links_supported_post_types filter.
Yes. Tokens are 32 characters of cryptographic randomness generated by WordPress's built-in wp_generate_password. The raw token appears in the URL only once — subsequent visits use a signed HttpOnly cookie. Tokens are stored as SHA-256 HMAC hashes in the database.
The recipient sees a clear message: "This draft link has expired and is no longer accessible." The post remains a draft — nothing is published.
Currently one active link per post. Regenerating creates a new token and resets the view count.
No. Erdo Draft Links is designed for draft and private posts. Password-protected posts use WordPress's own mechanism.
Erdo Draft Links only runs on requests that include a ?erdo_token= parameter or a valid session cookie. Normal site traffic is not affected.
current_time('timestamp') with time() for correct UTC handling.