WordPress Developer Ukraine, Kyiv
Remove the type Attribute from Script and Style Tags in WordPress

Remove the type Attribute from Script and Style Tags in WordPress

Warning: The type attribute is unnecessary for JavaScript resources If you check any WordPress site with the W3C validator, you will see a lot of warnings about the type attribute: the validator recommends removing from script tags and from style tags. In HTML5 these are the defaults, so the attribute is not needed.
Extend the WordPress REST API with register_rest_field()

Extend the WordPress REST API with register_rest_field()

Extend the WordPress REST API with register_rest_field() The REST API returns a fixed set of fields for every post: id, title, content, status and so on. Data that a theme or plugin keeps in post meta, in terms or in its own tables is not there. With register_rest_field() you add it to the existing response,…
Customize and Style a Google Form on Your WordPress Site

Customize and Style a Google Form on Your WordPress Site

Customize a Google Form for your WordPress site Usually a contact form on WordPress is Contact Form 7 plus a plugin that saves the entries to the database, such as CFDB7. Sometimes a client prefers Google Forms, because the answers land in Google Sheets. Embedding the form as an <iframe> takes a minute, but the…