Skip to content

Instantly share code, notes, and snippets.

{
"basic": {
"license key": "***REMOVED SENSITIVE VALUE***",
"date": "Fri, 24 Aug 2018 06:50:11 +0000",
"ownCloud version": "10.0.9.5",
"ownCloud version string": "10.0.9",
"ownCloud edition": "Community",
"server OS": "Linux",
"server OS version": "Linux 4.18.4-gentoo #1 SMP Thu Aug 23 16:11:58 CEST 2018 x86_64",
"server SAPI": "fpm-fcgi",
@androos
androos / add-product-to-cart.php
Last active December 10, 2017 22:25 — forked from sc0ttkclark/add-product-to-cart.php
WooCommerce Automatically add product to cart on site visit
<?php
/*
* This code goes into theme functions.php or a custom plugin
*/
/**
* Add product to cart on page load
*/
function add_product_to_cart() {