[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!

ACF – modify the Title & Content fields

ACF – modify the Title & Content fields

Advanced Custom Fields easily allows you to create the forms in the front end. If you add: in acf_register_form() or acf_form(), the form gives you the fields for Post Title and Post Content with the default labels “Title” and “Content”.

WP Hook after the post status is changed

WP Hook after the post status is changed

Are you looking to do something after the post is published which was drafted previously? This can be useful if you’re accepting posts from the frontend by creating a frontend form using ACF which you’re keeping in draft status because