By default JetPack adds a nofollow attribute to all links in the related posts section. You can use this PHP code snippet to remove/disable this nofollow attribute.
By default, WordPress doesn’t come with suspicious login notifications and two factor authentication. We use plugins (or custom code) for these things. This piece of code notifies you when a user logs in to your site. Good for websites with few users.
This code will select a random user agent from a predefined list of valid user agent strings. It’s useful for building certain types of web crawlers or cache warming bots. It helps bypass firewalls that reject requests missing a user agent string.
This guide will show you how to programmatically perform common service management tasks from PHP. It focuses on the ServiceManagementRestProxy class in the official Microsoft Azure SDK for PHP.
PHP code snippet to test whether a user has a valid Gravatar or not. The only input needed is the user’s email address. It uses MD5 hashing and URI response headers.
As of PHP 7.2 create_function() has been deprecated because of its usage of eval() – which in itself is a security hole. Even though applications that use create_function() may still work, you should replace it with an anonymous function instead.