This is the Github repo of my codes for the submission of the rtCamp WordPress Plugin Assignment.
Assignment: WordPress-Contributors Plugin
- Download the plugin .zip file
- In the admin-side of your WordPress site, install and activate the plugin
- Add some WordPress users
- Add a new post or edit an existing one
- From the post settings in the editor side panel, scroll down to Contributors section
- Check usernames to add post contributors
- Click Publish or Update when you finish
- In the front-side of your WordPress site, visit the post to see the contributors box right below the post content
http://hyp4rt.infinityfreeapp.com/2024/05/04/demo-post/
Before running tests, make sure to properly set up the WordPress Testing Library.
Run the following Composer commands to install dependencies
composer require --dev phpunit/phpunit
composer require --dev yoast/phpunit-polyfills
To run tests, run the following command
./vendor/bin/phpunit tests/TestHypContributors.php