This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDo3lWN9oiFqot70pQYu0Va/GscKCSUviG5ixdOwU9pjnxd2z10AwXp7EgFipcs4Q3Dm5+J3rD/rRwO0g7/SLdYma21OeHrJttQw5qDWZ0tWdmuV+2BSVr3ZwQlVTEr12QVv7YSuytFFaiApy/c2EGmYhLRZAmV5hhb5NpbOheCIw5Yxr8EwFNuR7DUBu1s17TeiJ7gGZvYDgGXvC24jZ3QJxL3lTwOWgJonBQROGq31HmYnHw7pxUJ/MDvfLTRBX0X7PCgbeR6r4lm0QOMpRl+jHItv4Or0e5cPWoti2GnBKuSD1PdzZ1DrTfjgHhwqs8xzVdeUqYwNti+nCfZFzh7T4Ta+0wLM1zYqSeEGKibUP0CSKMeXChlk8dz06XLTtt9gLAqRQF4R0u2Jht2i1Z1Nkib8fqMKJANxs7baA+lVh4xwiQUe8Zuu8NpT4/qSbr6UpTAj56fp2qnwMlF17p+AvKkv/60xpG0c7ot4rcERg5PdSKUCzb0O3SpShbfZmU= yakub@spreex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WooMultistore Refund Order Plugin. | |
* Plugin URI: https://woomultistore.com | |
* Description: Custom WooMultistore extension to handle refund orders. | |
* Version: 1.0.0 | |
* Author: Lykke Media AS | |
* Author URI: https://woomultistore.com | |
* License: GPL2+ | |
* Text Domain: woonet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Allow webp for media_sideload function. | |
*/ | |
add_filter( 'image_sideload_extensions', 'woonet_add_types', 10, 1 ); | |
function woonet_add_types( $ext ) { | |
$ext[] = 'webp'; | |
return $ext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'WOO_MSTORE_admin_product/disable_legacy_get_slave_product_id', '__return_true' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wholesale_customer_AUD_wholesale_price | |
wholesale_customer_wholesale_price | |
wholesale_customer_have_wholesale_price | |
wholesale_customer_GBP_wholesale_price | |
wholesale_customer_USD_wholesale_price | |
_regular_currency_prices | |
_sale_currency_prices | |
_product_base_currency | |
variable_regular_currency_prices | |
_variable_regular_currency_prices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'WOO_MSTORE_SYNC/process_json/meta', 'woonet_custom_filter_remove', 10, 3 ); | |
function woonet_custom_filter_remove( $_whitelisted_meta, $product_id, $wc_product ) { | |
if (($key = array_search('total_sales', $_whitelisted_meta)) !== false) { | |
unset($_whitelisted_meta[$key]); | |
} | |
return $_whitelisted_meta; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('WOO_MSTORE_ORDER/woocommerce_admin_order_actions', 'woonet_add_order_status', 10, 2); | |
function woonet_add_order_status( $actions, $the_order ) { | |
$actions['view'] = array( | |
'url' => esc_url( $the_order['store_url'] . '/wp-admin/post.php?post=' . $the_order['id'] . '&action=edit' ), | |
'name' => __( 'View', 'woonet' ), | |
'action' => 'view', | |
); | |
return $actions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Disable certain security features on development machines. | |
* | |
* @class WOO_MSTORE_SINGLE_DEV_ENV | |
* @since 3.0.6 | |
*/ | |
class WOO_MSTORE_SINGLE_DEV_ENV { | |
public function __construct() { | |
add_action('init', array($this, 'init'), 10, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
$working_directory = getcwd(); | |
$plugin_folder = basename( $working_directory ); | |
$parent_folder = dirname( $working_directory ); | |
/** | |
* Check if there's a git repo in the current directory. | |
*/ | |
if ( ! file_exists( $working_directory . '/.git/index') ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf woocommerce-multistore.zip | |
zip -r woocommerce-multistore.zip woocommerce-multistore -x '*.git*' -x '.DS_Store' -x '.travis.yml' -x 'bin' -x 'phpunit.xml.dist' -x 'tests' |
NewerOlder