Skip to content

JuniorTak/hypwpcontributors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wpcs-JuniorTak

This is the Github repo of my codes for the submission of the rtCamp WordPress Plugin Assignment.

Assignment: WordPress-Contributors Plugin

Usage

  1. Download the plugin .zip file
  2. In the admin-side of your WordPress site, install and activate the plugin
  3. Add some WordPress users
  4. Add a new post or edit an existing one
  5. From the post settings in the editor side panel, scroll down to Contributors section
  6. Check usernames to add post contributors
  7. Click Publish or Update when you finish
  8. In the front-side of your WordPress site, visit the post to see the contributors box right below the post content

Demo

http://hyp4rt.infinityfreeapp.com/2024/05/04/demo-post/

Running Tests

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

About

A WordPress Contributors Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published