Extending the WooCommerce Checkout block with jQuery and PHP

The WooCommerce Checkout block is the default for new installs from WooCommerce version 8.3. That way, the shortcode [woocommerce_checkout] (Classic Checkout) is slowly replaced by the Checkout block. However, the shortcode is still available and will be for a long time until the majority of the plugins are compatible with the Checkout block. At the […]

Migrating to the wp-scripts: analysing two cases

The wp-scripts (@wordpress/scripts) package is a collection of scripts to standardize and simplify the development of WordPress projects that have to transform and optimize the JavaScript code and other assets (images, fonts, CSS files, etc) to be compatible with the majority of browsers. That way, instead of configuring tools like webpack, Babel and ESLint, you […]

Exposing a WordPress function via REST API

The WordPress REST API was released on version 4.7.0 and it makes possible to send and receive data from endpoints (URL) to retrieve, update and create the content of your site. For example, we can get the post content of post ID 1 by sending an HTTP GET request to the endpoint /wp/v2/posts/1: Although WordPress […]

2023 in review

In 202, I forgot to take notes about what I was doing during the year and thought I would remember everything when I wrote the review. I was wrong. At least I learned not to trust 100% in the memory and in 2023 I took notes. About the blog, I made a significant change. I […]