WordPress Developer Ukraine, Kyiv
JavaScript Array Methods: map, filter, reduce and More

JavaScript Array Methods: map, filter, reduce and More

JavaScript array methods: map, filter, reduce and more Lists of posts from the REST API, products in a cart, form fields: front-end code works with arrays all the time. The built-in array methods transform, search and sum them without hand-written for loops, and they can be chained into short, readable pipelines.
AJAX live search in WordPress

AJAX live search in WordPress

AJAX live search in WordPress Adding AJAX to a search form makes the experience far more dynamic and user-friendly: results appear while the visitor types. This article walks through how to build one from scratch.
How send subscribe form on outer subscribe resource use AJAX

How send subscribe form on outer subscribe resource use AJAX

Submitting a subscribe form to an external service via AJAX When a subscription form posts directly to an external service, the browser takes the user away from the site on submit. Intercepting the form with AJAX and forwarding the data from the server lets you show a confirmation message inline without navigating away.
How to get format date as ISO 8601 in JavaScript?

How to get format date as ISO 8601 in JavaScript?

Format a date as ISO 8601 in JavaScript ISO 8601 is the standard format for date-time strings used in APIs and databases: YYYY-MM-DDTHH:MM:SS. JavaScript’s built-in toISOString() always returns UTC. If you need local time in the same format, you have to pad and join the date parts yourself.
Async or defer for script tag in WordPress

Async or defer for script tag in WordPress

Using function wp_enqueue_script for add scripts in WordPress does not allow to indicating attributes of a script such as async defer etc. Here, we describe how resolve this problem and also use wp_enqueue_script for enqueue of jQuery, Bootstrap by using CDN.