.
WORDPRESS PLUGINS ABOUT

PHP Code

Calling a Function from another WordPress plugin

Posted on: April 19th, 2024 by Stuart

Let’s say you have two plugins installed in WordPress and you need to run a function in PluginB from PluginA. This code will allow you to do this: Code for PluginB Here we are calling the custom action created in PluginA called plugin_a_custom_action. This code will check that PluginA is active and then get the […]

How to Blacklist an IP address and redirect them

Posted on: June 2nd, 2023 by Stuart

If your website is having a lot of traffic from an IP address and you would like to redirect them to a landing page, here is the code to do it. With this WordPress function which you can add to your functions.php file, you can add IP addresses into the array called $blocked_ips and change […]

^