Background Gradient for Hero Section

Blog

Technical articles on WordPress development, enterprise WordPress, performance, architecture, security, and scale by Mehul Gohil.

Register Block Styles in WordPress

How to Register Block Styles in WordPress?

Block styles let you add design variations to existing WordPress blocks without building new ones. This guide covers all four registration methods: JavaScript, PHP, theme.json, and block.json, with working code examples and best practices for each.

How to Disable XML-RPC in WordPress?

How to Disable XML-RPC in WordPress?

XML-RPC is a legacy WordPress feature that bots regularly exploit for brute force attacks and DDoS amplification. This guide explains the risks and covers multiple methods to disable it safely, including plugin, .htaccess, Nginx, and PHP filter approaches.