.
WORDPRESS PLUGINS ABOUT

WordPress

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 […]

Stopping a WordPress Plugin from updating

Posted on: April 17th, 2023 by Stuart

To stop a WordPress plugin from asking to be updated you need to add the following code in your functions.php file. It is very easy to do and shouldn’t take long at all.The main filename of a plugin is often the same as the folder name. This really only should be used if you REALLY […]

Creating WordPress Custom Fields

Posted on: April 17th, 2023 by Stuart

Sometimes you need to add some extra functionality to the backend of WordPress, whether to add a button in the main Dashboard page, an extra menu option in the main sidebar menu or even a whole new section in there. When I tried looking for a solution to add a button on the Dashboard page […]

How to fix PHP8 fatal error for WordPress Plugins or Functions.php

Posted on: March 6th, 2023 by Stuart

If you are like me and after upgrading your PHP to version 8 you started receiving the following error, then you are in the right place to fix it. You might as well have received a code 500 in your browser from this error also. This error signifies that there is most likely a hook […]

Hiding a Shipping option for certain products or categories

Posted on: February 13th, 2023 by Stuart

Sometimes you might need to hide one or more shipping option(s) for a particular product or category. This code will do this, all you need to do is add it to your themes Functions.php file. In this example, I am hiding the shipping option called “Free Shipping“. You can get this from the database table […]

Debug WordPress Scripts

Posted on: October 29th, 2022 by Stuart

Let’s say you have been looking at the many JavaScript scripts that WP loads and you would like to stop some from loading to help speed up your site. Now, this obviously could cause your site to not perform how it should, so it would be handy to see any errors when you stop a […]

^