$user = wp_get_current_user();
if ( in_array( 'b2buser', (array) $user->roles ) ) {
// load the code to set minimum order quantities
}
Related Posts:
- WooCommerce – Reset quantity input field when variation changes
- Pass Category Name, Description and Photo into variables to pass to jQuery
- How can I get the values of my WordPress $wpdb query in Jquery?
- Hide payment method based on user role AND minimum cart value
- Woocommerce – if selected attribute term equals
- Replace the image of a product with its video in the shop page
- How to correctly add Javascript in functions.php
- How to automatically apply woocommerce product title to all product images alt tags?
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- How to get the original price of the product in woocommerce?
- Woocommerce auto cancel On-Hold after X days
- How to use WordPress (PHP) functions in AngularJS partials files?
- WooCommerce – Customer Order History Pagination
- The values of custom fields are not available functions.php
- How can I loop into two different DIVS without repeating the DIVs
- Remove commas from WooCommerce checkout addresses fields
- Use is_product_category() properly
- Changing Woocommerce flat rate every nth number of items
- Limiting woocommerce line_total decimal length
- How do I display a user’s previous orders as a select box option on a product?
- How do you add customer capability after Woocommerce purchase?
- combine Code 1 with Code 2
- Image as Sales Badge
- Conditional Header in wordpress
- Two Different Links for Same Product – WooCommerce [closed]
- Auto-update products after they were published – Woocommerce
- Display a specific category of products in shop page and disable code for specific actions
- Woocommerce related product text
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Validation algorithm in checkout field
- My new button is in the wrong place
- How to disable controls in theme customizer?
- Add post with approval by the admin
- Theme not calling Jquery properly
- How to keep the capability of users and disable Gutenberg editor in WordPress?
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- How to make jquery count down timer function manually editable
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- woocommerce specific quantities for product
- Personalize checkout text
- CSS change in woo commerce Place Order Text [closed]
- WP All Import / Update stock quantity from multiple XML files
- woocommerce related product title length
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Query for user roles
- Custom Taxonomy Select Menu: Setting default option value?
- Execute Jquery when a specific page in my plugin is loading
- Modify WooCommerce used to get all orders in dashboard
- Output product category link from WP_Query
- Database entry removed on browser refresh, Ajax PHP jQuery
- Execute function only for specific user roles
- How to send a php var to jQuery Ajax call with two different file
- WooCommerce Query Product Titles
- Display custom field value in woocommerce variable product via jQurey
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
- Run a sql (update) after 12 hours after the user login. Woocommerce users
- Programmatically add a product to the cart and set price to zero when buying from certain category
- I want to show cart items number if any or nothing, simple CART text
- Outputting post content to jQuery .html() string
- Best way to use variables in multiple functions?
- Edit a function to take different actions based on user role
- Customize the “Available for back order” text for specific variation
- Discount in the specific product title using keyword ( Woocoommerce )
- Including user data in “new user notification email”
- split 1 cart item into instock and back ordered
- Adding product permalink on admin order page throwing error
- Add Product Permalink in woocommerce admin order page
- How to override WooCommerce Order Item Meta with data from Cart?
- JQuery modal not loading video on popup, only displaying it after multiple reopenings
- Woocommerce textarea format ignored
- Woocommerce Add custom “Add to cart button” in single page with tags
- How to call a function from functions.php with ajax?
- Add another role to a user when they click a button?
- How to properly create multiple conditions to redirect users roles to different pages
- Add missing alt tag to featured images for “storefront” theme
- How to call WordPress PHP file using external js file
- Display text of price (minus 20%) on every product page in a sentence.
- jQuery doesn’t work in my php snippet
- Allow BBPress participant role to trash topics
- Use WP_Query Data In Cookie
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- Woocommerce Price Text
- Get author meta of all writers
- Highlight posts currently being edited on multiple editor site?
- ajax form function error
- How to get the rating value of each comment
- Add specific phrase after every product title including the discounted price? [closed]
- AJAX: WordPress filters inside $html do not work as intended
- Setting WooCommerce currency programmatically
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- posts_clauses drop ACF get_field function
- Hide child of parent categories already hidden with “get_terms_args” – Woocommerce
- Change WooCommerce Order status from frontend form submitted data
- Custom Admin Menu Report for Specific User ID
- Add text below WooCommerce short description if metabox value is true