Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

ArnoutPullen ArnoutPullen

🎯
Focusing
View GitHub Profile
@ArnoutPullen
ArnoutPullen / woo-product-attributes-bulk-modifier.php
Created Jun 18, 2020 — forked from birgire/woo-product-attributes-bulk-modifier.php
WordPress: Woocommerce Product Attributes - Bulk Modifier ( from custom to taxonomy attributes)
View woo-product-attributes-bulk-modifier.php
<?php
/**
* Plugin Name: Product Attributes - Bulk Modifier
* Description: Bulk update 'custom product attributes' to 'taxonomy product attributes'. Supports the GET variables, like: wpq_mode=run&wpq_from=colour&wpq_to=pa_colour&wpq_ppp=10&wpq_offset=0&wpq_post_type=product&wpq_post_status=any. WARNING: Backup DB first!!!
* Plugin Author: birgire
* Plugin URI: https://gist.github.com/birgire/0ed300ae4436fcaf508c
* Version: 0.0.2
*/
/**
@ArnoutPullen
ArnoutPullen / elasticpress-toolset-integration.php
Created Oct 23, 2019
Integrate Toolset Views with ElasticPress
View elasticpress-toolset-integration.php
<?php
/**
* Integrate Toolset Views with ElasticPress
* https://github.com/10up/ElasticPress#supported-wp_query-parameters
* https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
*/
function ep_toolset_integration( $query, $view_settings, $view_id ) {
$query['ep_integrate'] = true;
You can’t perform that action at this time.