Starting with version 1.2.0 of Form Block, it’s now even easier to create forms in the WordPress block editor – with the new form creation wizard.
Continue reading Even easier form creation with Form Block 1.2Blog
For storing data in a custom API endpoint, I needed to run code whenever the block editor gets saved. That was easier said than done. The solution you’ll find first is to use subscribe
to subscribe to any change and filter it for the one you need.
By default, whenever you add or update an option via add_option
or update_option
in WordPress, that option is automatically loaded from the database on every request. This is not necessarily what you want. Especially if you have options with much content, it’s probably better to only load them when necessary.
From time to time I need to change widget content after it’s getting saved. Unfortunately, it’s not obvious how to get access to it. And additionally, it depends on how you’re using widgets in general.
Continue reading Run code on WordPress widget saveWhile creating a WordPress user there’s no information that the username cannot be changed later. But what to do if you need to change it? The field in the profile edit page is disabled and also enabling it manually via the developer tools won’t trick WordPress – yeah, I tried that. But also using wp_update_user
doesn’t update the username, since the field user_login
will be explicitly excluded from being updated.
The wait is over! Today, we are thrilled to announce the long-awaited release of Form Block Pro. After extensive development and rigorous testing, this remarkable WordPress plugin is now available to revolutionize your form-building experience. Say goodbye to the limitations of traditional form plugins and embrace the power and flexibility of Form Block Pro.
Continue reading Release of Form Block ProIn my last post I tracked down how to get the attachment ID of an attachment by one of its thumbnail URLs. Today, I go a step beyond that and show how to get the thumbnail path by its URL.
Continue reading Get attachment thumbnail path by its URL in WordPressWorking with attachments in WordPress is always somewhat special to me, because I always learn something new about its handling. In this case, I needed to get the attachment ID of an attachment via one of its thumbnail URL.
Continue reading Get attachment ID by its thumbnail URL in WordPressFor a specific condition I needed to customize the result set of WordPress’ get_posts
function. Since I struggled a bit with it, I want to make sure that never happens again with this post.
Last week, I published a SCSS code to fix inaccurate color contrast calculations. It is a Dart Sass implementation and based on an older implementation. However, for another project I needed yet another implementation that was built with scssphp, which has an own implementation.
Continue reading WCAG 2 compliant SCSS color contrast function with scssphp