PHP 8.3 Fatal error: Duplicate declaration of static variable

PHP 8.3 Fatal error: Duplicate declaration of static variable

Declaring the same static variable multiple times within the same scope will result in a Fatal Error since PHP 8.3. Example:

[Fix] str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

[Fix] str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

PHP 8.1 deprecated passing null to parameter #3 when using str_replace(). str_repace() is commonly used among developers to replace the one word with another in the string. Example: which replaces [ with { in the string $value. Since 8.1, if

[Fix] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

[Fix] strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

Since PHP 8.1, passing null to parameter #1 is deprecated. Example: when using strpos() to find the occurrence of the specific word in the string. In case of $value being null — the above deprecated message will appear. Fix: –

How to disable WordPress auto-updates

How to disable WordPress auto-updates

WordPress automatically updates itself for minor releases. Do you not want WordPress to automatically update itself? Here’s the code snippet: or you want to disable auto-updates for Themes & Plugins? or just disable auto-update emails? I hope this helps!

How to disable sending ALL emails from your WordPress Site

How to disable sending ALL emails from your WordPress Site

Do you want to disable all emails (with no exceptions) sent from your WordPress site? Do you absolutely not want your site to send any emails? Here’s the code snippet: Add this snippet to your functions.php and your site will

× WhatsApp