While 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.
Blog
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 scssphpWhen it comes to accessibility, the most common errors are contrast errors. And with an auto-contrast function in SCSS they seem to be fixed easily. But unfortunately, the vast majority of color contrast functions don’t work they way they should. At least not according to the WCAG 2 specifications.
Continue reading Fix your SCSS color contrast functionI’m glad to announce the release of Form Block, a dedicated block for the WordPress block editor to create highly customizable (contact) forms with ease.
Continue reading Release of Form Block v1.0.0While there is a did_action and did_filter to determine how often an action or a filter has been called, it works different then you might expect. Both work similar and only count whether do_action or apply_filters have been executed. They don’t check whether they have been actually used.
In your Mastodon profile, you can define up to four links individually. These links can be verified that they belong to you. So instead of using just plain links that look boring on your Mastodon profile, add them with the proper attribute to your website to get verified links.
Continue reading Properly add a Mastodon link to your WordPress site