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 | |
/** | |
* @snippet Modify order name depending on the state | |
* @author Foco Azul - Adrian Fernandez | |
* @testedwith WooCommerce 3.8 | |
*/ | |
function change_woocommerce_new_order_data($order, $data) | |
{ |
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 | |
function rc_get_categories_data() | |
{ | |
$categories_data = []; | |
$taxonomy = 'category'; //change this with the taxonomy you want | |
$orderby = 'name'; | |
$show_count = 0; | |
$pad_counts = 0; |