How to Prevent Publishing a Post if The Content Contains Certain Words

Usually post content in WordPress is generated by registered and trusted users and filtering the content before publishing is not a concern. But while developing a...

Inbuilt Sanitization Functions in WordPress

WordPress core has a number of inbuilt functions that can be used as sanitizers. That means, these functions can be used to sanitize user input. These...

Adding Different Controls to The Customizer in WordPress

Controls are user interfaces used to manage theme settings. You can add controls to the theme customizer screen using the WordPress customizer API. You will use...

Add a Checkbox Control Using Customizer API in WordPress

The inbuilt WordPress customizer gives us a great way to customize a custom theme. If you need a few theme settings added, you can do...

Adding a Select Control Using the WordPress Customizer API

A select control allows you to pick one of many values for a theme setting. It acts as an user interface for that setting. To use...

Adding a Text Control Through the Customizer in WordPress

A text control can be used to manage a simple theme setting. And adding text control to a theme is fairly easy. You can use...

How to Use the Customizer to Add/Update Theme Settings in WordPress

The WordPress customizer is an option that makes adding various settings for a custom theme quite easy. If you do not know what is a customizer,...

Wrap Long Words and Long Lines of Text in WordPress

Creating a WordPress theme from ground up is a long winding process. There are hierarchies you have to keep in mind and the content loop...

Adding a Custom Background in WordPress

Now and then you may want to add a background image or a color to the background in a WordPress site. There are a few...

Create a Block Pattern with register_block_pattern in WordPress

Patterns are useful for styling an individual post or page in WordPress. And WordPress offers block patterns from version 5.5 A pattern is a reusable block...