跳到内容

Post Likerator

v1.0.0

Flipeleven · 2017年10月19日 上架

Simple like/unlike function for posts. No dislikes. Bring your own CSS.

正在使用
10+
评分
暂无
累计下载
1,602
最近更新
2017年10月20日
需要 WordPress 4.8.2+已测试到 4.8.35

贡献者

Enables a simple like/unlike feature to be added to posts, pages, etc. There is no dislike feature. You are expected to style it however you like so it matches your theme; it has none of its own CSS. There is also no admin page or options for this plugin.

Add the like button to your template using the included PHP function:

<?php post_likerator(); ?>

By default it will use the current post ID and echo the like button’s markup. You can change this by passing (integer) Post ID and (boolean) echo arguments to the function:

<?php $like_button = post_likerator(2501, false); ?>

The above will attribute likes to post ID 2501 and will assign the string of markup to the $like_button variable instead of echoing it.

Once you’ve got it looking awesome, click to like the post. Clicking again will unlike it. You can go back and forth as much as you want, but it will probably get boring after a little while.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums