Add an "I'd like this" button anywhere in a WordPress post and get user feedback on your ideas, proposals and plans.
PHP JavaScript Other
Permalink
Failed to load latest commit information.
assets fixed JS auth request issue Jun 9, 2016
src/idlikethis Merge branch 'master' of github.com:lucatume/idlikethis Nov 10, 2016
templates added post control mb front-end Feb 17, 2016
templates_c update code after di52 update Nov 10, 2016
tests removed FunctionMocker loading instruction Dec 12, 2016
.gitignore
.travis.yml Update .travis.yml Aug 31, 2016
README.md added Travis CI build status badge Aug 31, 2016
bootstrap.php added meta boxes structure Feb 12, 2016
codeception.dist.yml Merge branch 'master' of github.com:lucatume/idlikethis Nov 10, 2016
composer.json require function mocker again Dec 12, 2016
composer.lock update code after di52 update Nov 10, 2016
idlikethis.php initial commit Jan 30, 2016
package.json fixed JS auth request issue Jun 9, 2016
webpack.config.js added post control mb front-end Feb 17, 2016

README.md

I'd like this

Travis CI Build Status

Add an "I'd like this" button anywhere in a WordPress post and get user feedback on your ideas, proposals and plans.

This plugin was built to give a concrete example of dependency injection usage in WordPress with DI52 and test-driven development using Codeception and wp-browser .
The test coverage is far from being complete but it contains a lot of hints and practical examples in the /tests folder for integration and functional testing.

Installation

Clone the plugin repository in a WordPress plugin directory:

cd /var/www/wordpress/wp-content/plugins
git clone lucautume/idlikethis

Cd into the plugin folder and install Composer dependencies:

cd idlikethis
composer install

Usage

Activate the plugin in WordPress plugin administration screen.
The plugin has not options and will add support for the [idlikethis] shortcode.
The shortcode can be used in its short form to generate a button that will register a generic "I'd liket this" comment:

How would you like me to undergo the steamy hot bucket challenge? [idlikethis]

Or in its long form to specify an idea:

Would you like me to undergo the steamy hot bucket challenge? [idlikethis]Steamy hot bucket[/idlikethis]
Or rather the ice bucket challenge? [idlikethis]Ice bucket[/idlikethis]