Latest posts

  • Day 13: Testing & Setting Up

    Setup WP-Unit Tests: Write Sample Unit Tests: Create Test File: Create a directory named tests in your plugin/theme root. Create a file named test-sample.php inside the tests directory. Create a Test Class: Example class in Run Tests: Execute tests using PHPUnit: vendor/bin/phpunit or just phpunit if you have global composer. Theme Testing: Plugin Testing: Best…

    Read more

  • Day 12: MultiSite & PHP Unit Testing

    Multisite / Network WordPress allows you to set up a network of websites using the same core files but with different login credentials and separate dashboards. Each site is independent of each other but can be managed from one place by the Network Admin (aka Super Admin). Key points: To enable Multisite, you need to…

    Read more