Lware
WordPress function to set a default featured image if none has been set
You can use the following WordPress function to set a default featured image if none has been set. This function checks if the current…
How to increase file upload size wordpress htaccess
To increase the upload file size in WordPress through the .htaccess file, you can add the following lines of code: 1. Locate and open…
How to set from email address in WordPress
To set from email address for all outgoing emails on your WordPress site, you can use the 'wp_mail_from' filter. You can add the following code…
How to prevent text from phone number field gravity forms
To prevent users from entering text into a phone number field in Gravity Forms while using international phone format, you can utilize JavaScript to…
Disable user registration on WordPress
To disable user registration on a WordPress website, you can follow these steps: Method 1: Using the WordPress admin dashboard Log in to your…
How to increase PHP max_execution_time WordPress site
To max_execution_time Locate the php.ini file: This file is responsible for setting up the PHP configuration. You can ask your web hosting provider to…
PHP Fatal error: Uncaught Error: Call to undefined function create_function()
I recently encountered PHP Fatal error: Uncaught Error: Call to undefined function create_function error when updating WordPress install from PHP7.4 to PHP8.0. Below was…
Make specific Advanced Custom Field read-only
To make a specific advanced custom field read-only from the backend in WordPress, you need to identify the field's name and add a conditional…
How to Disable Gutenberg editor WordPress Without Plugin
To disable Gutenberg editor also known as block editor without using a WordPress plugin. You will need access to your install files using FTP…
No Add New button for themes and plugins in WordPress
When you encounter or realized that above no add new button issue on your WordPress site, it means you are not able to add…