Skip to content

Instantly share code, notes, and snippets.

View digitalchild's full-sized avatar

Jamie Madden digitalchild

View GitHub Profile
@poojasolanki3272
poojasolanki3272 / WCVendor & Pro plugin
Last active November 25, 2019 10:33
WCVendor & Pro plugin issues and solution
===Fixing css issue for trello===
===Ocean-WP===
- button css issues with oceanwp theme - just need to add "button" class on button tag
- https://trello-attachments.s3.amazonaws.com/5da59b81e4e03951b237897e/5dbae63402aebe22fc88d05c/50a2f0d2afa0e7c06904c9edb2737208/class_issues.png
===Astra Theme===
@lukecav
lukecav / Custom DB tables
Created September 26, 2019 17:38
WCFM Marketplace plugin created custom database tables
wp_wcfm_daily_analysis
wp_wcfm_detailed_analysis
wp_wcfm_enquiries
wp_wcfm_enquiries_meta
wp_wcfm_enquiries_response
wp_wcfm_enquiries_response_meta
wp_wcfm_following_followers
wp_wcfm_marketplace_orders
wp_wcfm_marketplace_orders_meta
wp_wcfm_marketplace_product_multivendor
@growdev
growdev / remove_wc_data.sql
Last active February 3, 2022 01:52
Remove WooCommerce orders, subscriptions, non admin users
# GET number of orders
select count(*)from wp_posts where post_type = 'shop_order';
# DELETE ORDER DATA FROM POSTMETA TABLE
delete from wp_postmeta where post_id in (select ID from wp_posts where post_type = 'shop_order');
# DELETE ORDER DATA FROM POSTS TABLE
delete from wp_posts where post_type = 'shop_order';
@austinjp
austinjp / Wordpress-inside-LXC.md
Last active September 7, 2023 12:04
An *unprivileged* LXC container dedicated to running Wordpress

What and why

Create an unprivileged Linux container (LXC) dedicated to running Wordpress websites.

If you install Wordpress regularly on Linux you can instead simply clone this container.

The Wordpress installation is nothing fancy. It's not multi-site, it's not SSL enabled by default, or anything like that. Just a plain bog-standard Wordpress installation serving a single domain.

Warning!

@lukecarbis
lukecarbis / frontend-ajax.php
Created October 28, 2014 19:23
WordPress AJAX Frontend Execution
<?php
/**
* WordPress AJAX Frontend Execution.
*
* Using WP Ajax should not be used from the frontend because response
* from `admin-ajax.php` are not cached (including `nocache_headers()`).
* Instead, you should add a query var, and then do the `template_include`
* routine to select a template that returns JSON.
*
* A side benefit here is that it makes your site more RESTful.