before_registration_form- Location:
includes/class-wwlc-shortcode.php:298 - Parameters:
$registration_form_fields(array)
- Location:
- Description: Fires before the registration form is rendered
| /** | |
| * JavaScript to DISABLE burger menu completely - show all items in main bar | |
| * This prevents any items from being moved to the burger menu | |
| */ | |
| function wcv_disable_burger_menu() { | |
| // Only run on dashboard pages | |
| if ( ! function_exists( 'wcv_is_dashboard_page' ) || ! wcv_is_dashboard_page() ) { | |
| return; | |
| } | |
| ?> |
| <?php | |
| /** | |
| * Workaround for BOGO Coupon Not Working with Regular Coupons | |
| * | |
| * This snippet fixes the issue where BOGO coupons don't apply correctly | |
| * when a regular WooCommerce coupon is already in the cart. | |
| * | |
| * DO NOT MODIFY PLUGIN CORE FILES | |
| * Add this to your theme's functions.php or a custom plugin | |
| * |
| function wwpp_add_wholesale_price_export_columns( $columns ) { | |
| // Check if wholesale prices plugin is active | |
| if ( ! class_exists( 'WWP_Wholesale_Prices' ) ) { | |
| return $columns; | |
| } | |
| // ============================================ | |
| // CUSTOMIZE THIS: Set your wholesale role key | |
| // ============================================ |
| <?php | |
| /** | |
| * WC Vendors Google Merchant Center Integration | |
| * | |
| * This code provides the missing functionality to retrieve vendor shipping data | |
| * from a product object for Google Merchant Center feed generation. | |
| */ | |
| /** | |
| * Get vendor ID from a WooCommerce product object |
| // ============================================================================== | |
| // LPFW Percentage Limit - Limit Points Redemption to Percentage of Cart Value | |
| // ============================================================================== | |
| add_action('admin_footer', function() { | |
| $screen = get_current_screen(); | |
| if (!$screen || (strpos($screen->id, 'woocommerce') === false && strpos($screen->id, 'acfw') === false)) { | |
| return; | |
| } | |
| ?> | |
| <script type="text/javascript"> |
| /** | |
| * Username Field | |
| * Description: Adds a username field to WC Vendors Signup and uses it when creating the user. | |
| */ | |
| defined( 'ABSPATH' ) || exit; | |
| add_filter( 'wcv_signup_form_config', function( $config ) { | |
| $config = is_array( $config ) ? $config : array(); |
| /** | |
| * Add vendor header on Elementor single product template. | |
| */ | |
| add_action( 'wp_footer', 'wcv_elementor_js_vendor_header' ); | |
| function wcv_elementor_js_vendor_header() { | |
| if ( ! function_exists( 'is_plugin_active' ) ) { | |
| include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
| } |
| <?php | |
| /** | |
| * WC Vendors - Regenerate Missing Vendor Orders | |
| * | |
| * This script regenerates missing vendor sub-orders for cases where: | |
| * - Products were initially published under Administrator | |
| * - Product author was later corrected to vendor | |
| * - Commission was recalculated but vendor orders are missing from Orders menu | |
| * | |
| * IMPORTANT: |