Created
February 7, 2018 05:42
-
-
Save SirDarcanos/2e33837155328993237d33faec43ea60 to your computer and use it in GitHub Desktop.
functions.php
This file contains hidden or 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
add_action( 'init', 'custom_init', 999 ); | |
function custom_init() { | |
$order = wc_get_order( 123 ); | |
$order->set_payment_method_title( 'Credit Card' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment