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 to your theme’s functions.php file or create a custom plugin to ensure that all emails sent from your WordPress site use the specified email address: function set_wp_mail_from($email) { return '[email protected]'; // […]

How to set from email address in WordPress Read More »

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 validate the input. Here’s a basic example of how you can achieve this (prevent text from phone number field gravity forms). jQuery(document).ready(function($) { // Replace 'input_1_3' with the ID of your

How to prevent text from phone number field gravity forms Read More »

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 the line of code that was causing the issue [php]add_action( ‘widgets_init’, create_function( ”, ‘register_widget( "Qode_Pitch_Sticky_Sidebar" );’ ) );[/php] In PHP 8, the create_function function has been deprecated, and its use is

PHP Fatal error: Uncaught Error: Call to undefined function create_function() Read More »

Disable Language Switcher on WordPress Login Screen 2 Ways

In this article we are going to look at how we can disable language switcher dropdown on the WordPress login screen.  Why disable language switcher dropdown ? Since WordPress 5.9 wordpress came up with a language switcher which shows up on the login screen. This will help a person to choose the default language to

Disable Language Switcher on WordPress Login Screen 2 Ways Read More »