When submitting a support request for a WordPress plugin, one of the things you will commonly be asked for is a database dump of your site. A database dump allows the support technician to load your data into a test site to receive insight about the state of your particular site. Having a database dump provides an enormous amount of information to make support responses not only faster but more accurate. WordPress and PHP provide several processes for exporting a database dump. We're going to … [Read more...]
Category: Tools
Gutenberg Block Editor – Translating TypeScript
WordPress versions 4.9 and below allowed you to translate text in your JavaScript by passing JSON objects via wp_localize_script. While this system works great it has some limitations. With the release of WordPress 5.0, support was introduced to allow developers to translate their theme or plugin directly within JavaScript. Translating in JavaScript has some nice benefits: The available tools work great if you are using plain JavaScript and no form of Continuous Delivery (CI/CD) in your … [Read more...]
Use Immer ReactN – Version 1.4.0
Version 1.4.0 of use-immer-reactn is now available for general use. This version focused on closing the gap between use-immer and use-immer-reactn. Pass Finished Objects While most of the time when using the useGlobalImmer hook you'll want to pass a callback to take advantage of mutating the draft, sometimes you have a finished object externally and want to replace it. Now the returned updater function supports passing either a callback or a finished object interchangeably: … [Read more...]
WordPress-Libs – Version 3.1.0
Version 3.1.0 of WordPress Libs is now available and ready for general use. This version focused on improving the Actions functionality as well as various enhancements and bug fixes. Introduce add_looping_action on Actions class WordPress supports short circuiting various methods using filters to allow handling the process in an external way. Sometimes you need to call the original API to run your external process. Complications arise when the short circuit is part of original API as … [Read more...]
Making PHPUnit 7 tests work with PHP8
Update: The WordPress core integration testing library now supports PHPUnit 9 and no longer requires a special PHPUnit 7 library. Our version of PHPUnit 7 has been discontinued and is no longer available. More information may be found here. A few months ago a new major version of PHP was released which brought many code style and functionality enhancements. A very useful update toward making PHP strict typed and running more computational complex programs natively on PHP. If you are … [Read more...]
Js-Boilerplate Version 6.3
Version 6.3 of @lipemat/js-boilerplate is now available and ready for use. Over the past month or so there have been a couple minor version updates. This post will cover all changes since version 6.0.0. The main focus of this release was to reduce the reliance on core-js in favor of improved browser targeting and tools to verify which browsers are actually targetted. Reduce Reliance on Core-JS Core JS is a set of polyfills which add support to older browsers for modern code structures … [Read more...]