Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke Cavanagh lukecav

View GitHub Profile
@lukecav
lukecav / WPAI - Ninja Forms Submissions Template
Last active Aug 26, 2020
Ninja Forms plugin submissions post type and WP All Import Pro submissions import template
View WPAI - Ninja Forms Submissions Template
[{"id":"1","options":"a:211:{s:4:\"type\";s:4:\"post\";s:21:\"is_override_post_type\";i:0;s:15:\"post_type_xpath\";s:0:\"\";s:8:\"deligate\";s:0:\"\";s:11:\"wizard_type\";s:3:\"new\";s:11:\"custom_type\";s:6:\"nf_sub\";s:14:\"featured_delim\";s:1:\",\";s:10:\"atch_delim\";s:1:\",\";s:25:\"is_search_existing_attach\";s:1:\"0\";s:15:\"post_taxonomies\";a:0:{}s:6:\"parent\";i:0;s:23:\"is_multiple_page_parent\";s:3:\"yes\";s:18:\"single_page_parent\";s:0:\"\";s:5:\"order\";s:1:\"0\";s:6:\"status\";s:7:\"publish\";s:13:\"page_template\";s:7:\"default\";s:25:\"is_multiple_page_template\";s:3:\"yes\";s:20:\"single_page_template\";s:0:\"\";s:15:\"page_taxonomies\";a:0:{}s:9:\"date_type\";s:8:\"specific\";s:4:\"date\";s:18:\"{datesubmitted[1]}\";s:10:\"date_start\";s:3:\"now\";s:8:\"date_end\";s:3:\"now\";s:11:\"custom_name\";a:4:{i:0;s:8:\"_field_1\";i:1;s:8:\"_field_2\";i:2;s:8:\"_field_3\";i:3;s:8:\"_form_id\";}s:12:\"custom_value\";a:4:{i:0;s:9:\"{name[1]}\";i:1;s:10:\"{email[1]}\";i:2;s:12:\"{message[1]}\";i:3;s:
@lukecav
lukecav / Custom DB tables
Created Aug 26, 2020
Ninja Forms plugin created database tables
View Custom DB tables
wp_nf3_action_meta
wp_nf3_actions
wp_nf3_chunks
wp_nf3_field_meta
wp_nf3_fields
wp_nf3_form_meta
wp_nf3_forms
wp_nf3_object_meta
wp_nf3_objects
wp_nf3_relationships
@lukecav
lukecav / wp-config.php
Created Aug 25, 2020
Force SSL Admin using a constant but not have WP-CLI complain
View wp-config.php
define('FORCE_SSL_ADMIN', true);
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
$_SERVER['HTTPS']='on';
}
@lukecav
lukecav / Commands
Created Aug 24, 2020
Object Cache Pro plugin WP-CLI commands
View Commands
wp redis enable --force
wp cache flush
wp cache flush --async
wp redis info
@lukecav
lukecav / Commands
Last active Aug 24, 2020
Redis Object Cache plugin WP-CLI commands
View Commands
wp plugin activate redis-cache
wp redis enable
wp redis status
@lukecav
lukecav / functions.php
Created Aug 22, 2020
Remove Robots Meta Tags in Yoast SEO
View functions.php
add_filter( 'wpseo_robots', '__return_false' );
add_filter( 'wpseo_googlebot', '__return_false' );
add_filter( 'wpseo_bingbot', '__return_false' );
@lukecav
lukecav / Custom DB tables
Created Aug 21, 2020
WooCommerce Product Search plugin created custom database tables
View Custom DB tables
wp_wps_hit
wp_wps_index
wp_wps_key
wp_wps_object_term
wp_wps_object_type
wp_wps_query
wp_wps_uri
wp_wps_user_agent
@lukecav
lukecav / Commands
Created Aug 20, 2020
Clear the Varnish cache when using Magento
View Commands
php bin/magento cache:clean
php bin/magento cache:purge
@lukecav
lukecav / Custom DB tables
Created Aug 19, 2020
Emails & Newsletters with Jackmail plugin created custom database tables
View Custom DB tables
wp_jackmail_campaigns
wp_jackmail_campaigns_urls
wp_jackmail_lists
wp_jackmail_lists_contacts_1
wp_jackmail_scenarios
wp_jackmail_scenarios_events
wp_jackmail_scenarios_urls
wp_jackmail_templates
wp_jackmail_woocommerce_email_notification
@lukecav
lukecav / Links
Last active Aug 18, 2020
WP Rocket plugin issue with WooCommerce 4.4.0
View Links