PHP performance debugging tools for WordPress

Published: 2 Comments

When it comes to performance debugging, there are a wide variety of tools available. The last years, I searched for one that is actually easily usable and provides easy access in identifying bottlenecks.

There are some that are specific to WordPress, e.g. as plugins, some allow general performance debugging via PHP and some require a PHP extension to be loaded. I’ll cover all of these types in the following article.

Continue reading PHP performance debugging tools for WordPress

(Temporarily) Disable a shortcode in WordPress

Published: Leave a comment

When I was working on schema data, I got an issue where a shortcode was executed within that data, which was not desired. So I looked for a way to disable this particular shortcode temporarily. I didn’t want to disable all shortcodes, which would have been easier by just removing the do_shortcode function within my code, because I was dependent on other shortcodes.

Continue reading (Temporarily) Disable a shortcode in WordPress

Block editor: Apply styling settings to custom elements

Published: Leave a comment

Custom styling settings for custom elements could be so easy: use the block selector API to define the selector where the styles should apply and enable the applicable styles in the block.json. But unfortunately, it doesn’t work this way. If you need to apply styling to a custom element inside your block and not the surrounding element, you need to implement it manually. Luckily, Aki Hamano shared a how-to on GitHub.

Continue reading Block editor: Apply styling settings to custom elements