Skip to content

Instantly share code, notes, and snippets.

View AcademicHumber's full-sized avatar
💭
Coding

Humber AcademicHumber

💭
Coding
View GitHub Profile
@AcademicHumber
AcademicHumber / modify_order_name_by_state.php
Created March 31, 2021 18:11
WooCommerce - Modify order name depending on the state
<?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)
{
@AcademicHumber
AcademicHumber / get_taxonomy_data.php
Last active March 24, 2021 14:49
Wordpress: Function to make an array of elements from an specific taxonomy even at a second level of hierarchy
<?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;