Skip to content

Instantly share code, notes, and snippets.

@webdados
Created March 27, 2025 10:58
Show Gist options
  • Save webdados/e427fa69c1c8a25c0f37211592181279 to your computer and use it in GitHub Desktop.
Save webdados/e427fa69c1c8a25c0f37211592181279 to your computer and use it in GitHub Desktop.
Shop as Client - Change fields position/priority on the WooCommerce Checkout
<?php
/**
* Plugin Name: Shop as Client for WooCommerce - Fix field priority
* Description: Fix the field priority if messed up by another plugin
* Version: 1.0
* Author: PT Woo Plugins (by Webdados)
* Author URI: https://ptwooplugins.com/
* Requires at least: 5.8
* Tested up to: 6.8
* Requires PHP: 7.4
* WC requires at least: 7.1
* WC tested up to: 9.8
* Requires Plugins: woocommerce, shop-as-client
**/
add_filter(
'shop_as_client_field_priority',
function ( $priority ) {
$priority = 10;
return $priority;
},
20
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment