Category: Code snippets
-
How to remove WP Bakery from WooCommerce shop page
Problem with jQuery date picker and The7 theme The issue The problem was a date picker ( jquery ui datepicker ) provided by a small add on plugin was not operating correctly on a WooCommerce shop page withing a theme that has baked in WP Bakery ( The7 theme ). The investigation The obvious place…
-
Linking WooCommerce to a Spreadsheet using Google Sheets and the REST API
IMPORTANT NOTE As of 22 Oct 2019 – this script seems to be in an infinite loop – so use this as a coding concept ONLY. I will debug it in due course, and update – BUT if you spot the issue first please do leave me a comment below with your solution. Following on…
-
WordPress REST API retrieve data and email it as an xls using Google Sheets
Google Script to read a WordPress REST API endpoint into a Google Sheet and then email it ( no titles in this one, see other tutorials for titles )
-
Stopping Genesis Full menu loading momentarily before the responsive menu
Many, if not all of StudioPress’s older themes flash up the full menu for a glimpse before the responsive hamburger comes in. This doesn’t look great but is easy to fix in 2 steps. First, tweak the CSS so that the start of the responsive section reads body.js .genesis-nav-menu { display: none; } the responsive…
-
Code snippet to change notification of new users
Example plugin to set admin notification of new users. In this case it uses the first user defined as shop_manager role <?php /* * * Plugin Name: Notify New Users to Shop Manager * Plugin URI: https://fullworks.net/products/custom-plugin-development/ * Description: Needs Woo Commerce of Course * Version: 1.0 * Author: Fullworks * Author URI: http://fullworks.net/ *…
-
Putting it all together – authenticate, read and update WordPress from a spreadsheet
This is my fourth post in my series of how to build a script to manage WordPress data via the API and a spreadsheet. If you have arrived here without looking at the others you probably should start at the beginning here. In this tutorial I’m going to handle updating and then pull it all…