WPJM Extra Fields 1.3.0 update

Last month WPJM Extra Fields was updated to 1.3.0, be sure to get the latest version if you haven’t done it yet. Here’s the changelist: Tested up to WordPress 5.3.2 Tested up to WP Job Manager 1.34.1 Fixed: i18n by removing /lang path Enhancement: Added a class to textfields, so can be targeted via CSS Enhancement: Added a new Salary column under Job Listings > … Continue reading WPJM Extra Fields 1.3.0 update

Adding Unit tests to a WordPress plugin via VVV and PHPUnit

While the official documentation can be found at https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/ , this is very far from being approachable to folks who are just starting (like me). It honestly took half a dozen of tries during the last year to make it work as expected. While steps 1 ( Install PHPUnit ), and 2 ( Install WP-CLI ) are somewhat clear, step 3 ( Use WP-CLI to … Continue reading Adding Unit tests to a WordPress plugin via VVV and PHPUnit

NullReferenceException: Object reference not set to an instance of an object

This is a problem I face so many times that I need to write it as a reminder for my future self. How to fix Null Reference Exceptions: What does it mean that an object reference is not set to an instance of an object. Let’s say we have a method we want to call, this function is in script B, and you want to … Continue reading NullReferenceException: Object reference not set to an instance of an object