git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
package demo; | |
import static java.util.Arrays.asList; | |
import static org.springframework.security.core.authority.AuthorityUtils.createAuthorityList; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.util.LinkedHashMap; | |
import java.util.List; | |
import java.util.Map; |
/** | |
* Add or modify States | |
*/ | |
add_filter( 'woocommerce_states', 'custom_woocommerce_states' ); | |
function custom_woocommerce_states( $states ) { | |
$states['XX'] = array( | |
'XX1' => 'State 1', | |
'XX2' => 'State 2' |
<?php | |
add_filter( 'wc_order_statuses', 'wc_renaming_order_status' ); | |
/* | |
* Rename WooCommerce Order Status | |
*/ | |
function wc_renaming_order_status( $order_statuses ) { | |
foreach ( $order_statuses as $key => $status ) { | |
$new_order_statuses[ $key ] = $status; |