Category: WordPress

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 […]