How to downgrade plugin?

If that plugin is hosted on wordpress.org, go to the plugin page, click on the developers tab, and select an older version. Example for JetPack.

Adding a Tag Parameter / Filter to My Shortcode

That plugin you have is not using the WordPress Shortcode API as it should be. There is not a single add_shortcode to be found. It has basically cooked up its own shortcode ‘feature’ by hooking a preg_replace_calback into the_content define(“categoryThumbnailList_REGEXP”, “/\[categorythumbnaillist ([[:print:]]+)\]/”); define(“categoryThumbnailList_TARGET”, “###CATTHMBLST###”); function categoryThumbnailList_callback($listCatId) { And: function categoryThumbnailList($content) { return (preg_replace_callback(categoryThumbnailList_REGEXP, ‘categoryThumbnailList_callback’, $content)); … Read more

Require Capability to View Woocommerce Product

My guess is that your problem is here: if (is_product_category(‘b2b’)) Taking a look at the Woocommerce Documention for Conditional Tags is_product_category() will return true on product category archives. Therefore, it will never be true on the single product page. What I think you need instead is has_term() which checks a post for a particular term. … Read more

How to add an admin alert for missing plugins

To check if a plugin is installed and activated, use the is_plugin_active() function. Note that you need to include this function first on the front-end before you can use it: include_once ABSPATH.’wp-admin/includes/plugin.php’; Avoid function_exists() for doing the check. Plugins may refactor their code and a previously existing function might disappear. You never know.

WP e-Commerce Gold Cart with Plugin Built Into Theme

Typical Plugin Structure Generally speaking WordPress plugins are located at /wp-content/plugins/ they are not typically installed within the /wp-content/themes/… directory tree. If your theme is installing the plugin (wp e-commerce) under it’s own directory then you’ll need to work with your theme provider to work out how to update/upgrade. For a typical install of WP … Read more