Git appears to come as standard as part of the WSL install. You can test this by running:
$ git --versionIf for some reason Git is not installed then you can simply pull it down:
| <?php | |
| /** | |
| * Delete attached images after product deletion. | |
| * | |
| * @since 1.0.0 | |
| * | |
| * @see wp_delete_post() | |
| * | |
| * @param int $post_id Post ID. | |
| */ |
| <?php | |
| function args_update() { | |
| $loop = 0; | |
| $args = array( | |
| 'name', | |
| 'surname' | |
| ); | |
| foreach ( $args as $arg ) { | |
| WC()->queue()->schedule_single( |
| <?php // Do not include this if already open! | |
| /** | |
| * Code goes in theme functions.php. | |
| */ | |
| add_filter( 'gettext', 'custom_order_button_strings', 20 ); | |
| /** | |
| * Change order button text strings. | |
| * |
| <?php // Do not include this if already open! | |
| /** | |
| * Code goes in theme functions.php. | |
| */ | |
| add_action( 'plugins_loaded', 'remove_wc_get_formatted_order_total_filters' ); | |
| /** | |
| * Remove all filters for WC formatted order total. | |
| */ |
| <?php // Do not include this if already open! | |
| /** | |
| * Code goes in theme functions.php. | |
| */ | |
| if ( class_exists( 'WooCommerce' ) ) { | |
| add_action( 'post_class', 'wc_order_post_class', 20, 3 ); | |
| } | |
| /** |
| <?php // Do not include this if already open! | |
| /** | |
| * Code goes in theme functions.php. | |
| */ | |
| add_filter( 'woocommerce_rest_check_permissions', '__return_true' ); |
| <?php // Do not include this if already open! | |
| /** | |
| * Code goes in theme functions.php. | |
| */ | |
| add_filter( 'rest_url_prefix', 'custom_rest_url_prefix' ); | |
| /** | |
| * Modify url base from 'wp-json' to 'api' prefix. | |
| */ |
'wc-pending' => _x( 'Pending payment', 'Order status', 'woocommerce' ),
'wc-processing' => _x( 'Processing', 'Order status', 'woocommerce' ),
'wc-on-hold' => _x( 'On hold', 'Order status', 'woocommerce' ),
'wc-completed' => _x( 'Completed', 'Order status', 'woocommerce' ),
'wc-cancelled' => _x( 'Cancelled', 'Order status', 'woocommerce' ),
'wc-refunded' => _x( 'Refunded', 'Order status', 'woocommerce' ), // Excluded
'wc-failed' => _x( 'Failed', 'Order status', 'woocommerce' ), // Excluded