Peter
Peter is a Computer Network Engineer who now works as a freelance WordPress web developer, with over 8 years of experience building, speeding up and securing WordPress sites. He writes the tutorials, fixes and guides you'll find here on WPCOKE.
- Years building websites
- 8+
- Articles published
- 63
- Topics covered
- 11
Articles by Peter
How to Increase the PHP max_input_vars Limit for Better Performance
When managing a website with extensive forms or data-intensive pages, you may encounter the “max_input_vars” limit. This PHP setting restricts the number of input…
How to Customize WordPress Comment Notifications to a Specific Email Address
By default, WordPress sends comment notifications to the email address of the site administrator. While this works for many, there are cases where you…
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…