Created
March 27, 2025 10:58
-
-
Save webdados/e427fa69c1c8a25c0f37211592181279 to your computer and use it in GitHub Desktop.
Shop as Client - Change fields position/priority on the WooCommerce Checkout
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
<?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