| 开发者 | Remoji |
|---|---|
| 更新时间 | 2026年7月8日 03:41 |
| PHP版本: | 4.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
wp-content/themes/<YOUR THEME>/index.php or archive.php/single.php/post.php/page.php.while ( have_posts() ) { or anywhere you want to show the views, add the following codes: do_action( 'remoji_postview' );.do_action( 'remoji_postview', $the_post_id_to_inquire );.
Shortcode [views] available
Use [views] or [views id="3"](To show the views of post ID 3) in your editor.
Clicking an emoji sends a request to the REST endpoint /wp-json/remoji/v1/add. If reactions fail, the most common causes are:
add request returns rest_no_route (404), the route is being blocked/rewritten before it reaches the plugin — allow the remoji/v1 REST namespace in your security plugin/firewall.
Turn OFF "Auto-Append To Content" in the settings, then use the shortcode [remoji] (or [remoji id="3"]) or the PHP hook do_action( 'remoji_reaction' ); where you want the reaction bar.
Use "Limit Emojis" in the settings to restrict the picker to a subset. Developers can add/replace emojis via the remoji_emoji_list filter.
[remoji] shortcode + do_action( 'remoji_reaction' ) hook, with an option to disable auto-appending.remoji_emoji_list filter for custom emojis.remoji_trust_proxy_headers filter is enabled — sites behind a CDN/proxy should enable it.