As seen on the https://clicknathan.com blog: How to Allow Subscribers to Delete Posts from the Front End while Still Blocking the Admin Area Allow WordPress Authors to Delete their Posts from the Front End Additionally, here is a simple script to put within the loop to display a delete link for anyone with the rights to Full Article…
Search the Wiki
If your php script can be invoked using an URL, you can lynx, or curl, or wget to setup your crontab as shown below. The following script executes the php script (every hour) by calling the URL using the lynx text browser. Lynx text browser by default opens a URL in the interactive mode. However, Full Article…
See this Stack Overflow thread for more commentary: https://stackoverflow.com/a/44708344 Get and access to the order data properties (in an array of values): Get the order items and access the data with WC_Order_Item_Product and WC_Order_Item methods:
As seen on Rodolfo’s Business Bloomer website.
Check this JS Fiddle: http://jsfiddle.net/pizzaboy13/u7FL5/
Adapted from past work and this article on WP Engine’s blog.
I have a little problem when I try to display woocommerce customer order comments (not the notes, but the comments that a customer can add during the checkout process).
Set your cron time / path to php / path to your php script Adding >/dev/null 2>&1 on the end prevents an email from getting sent each time the cron if triggered.