This plugin will show real comment preview to the users, it's also supporting jetpack's markdown.
PHPCS Standard used: WordPress-Extra
Yes, this plugin is giving support for custom post types, for that you can use below filter.
wp_comment_preview_allowed_post_types
: Returning array of post types will support those post types.
NOTE: This plugin works with WordPress's default comment form only.
Convert Markdown comment to readable format ( POST request )
https://example.com/wp-json/wp_comment_preview/v1/preview
- Params:
comment
- Comment text.format
- Whether to preview markdown or plain text - Two values it will takeplain
ORmarkdown
.author
- For non-logged in user you can send author's name here, logged-in users will automatically get their name in that comment.
- Params: