This worked for me:
add_filter( 'wp_dropdown_cats', function( $html, $args ) {
if ( $args['taxonomy'] === 'product_cat' ) {
$html = str_replace( '<select', '<select data-placeholder="New Placeholder"', $html );
}
return $html;
}, 10, 2);
Related Posts:
- Remove “Choose An Option” on Product Variation & Auto Select Instead
- Show only sidebar if widgets have content on the current page
- WooCommerce Multi-Currency shortcode not working
- WooCommerce Country Drop Down colours CSS [closed]
- WordPress keeps moving my widgets to other widget areas
- the_widget() – filter only one instance
- Dropdown menu not displaying WordPress
- Trying to style Woocommerce sidebar Cart Widget [closed]
- how do i remove a woo-commerce widget?
- Display vendor phone number on single product page
- I want a simple dropdown for locations in woocommerce
- Adding additional text under the price via product page
- Filter by Price filter button not working
- Two types of product categories on shop page
- Collapsible product categories on sidebar?
- How to display products in sidebar in 2 columns?
- Integration widget Mondial Relay Js
- Multiple quantities with options
- Adding more information to a Content Product Category
- How to Manage Multiple WordPress Websites from one dashboard (WooCommerce)
- Order by rating not works in wp_query
- WooCommerce: Add New Report Tab
- Woocommerce checkout fields on the same line
- display available size on hover, in woocommerce shop page [closed]
- How to add multiple product gallery images from front-end
- Hide income in Woocomercer [closed]
- WooCommerce: Email Notifications
- How do you add custom metadata to WooCommerce orders? Specifically a second external order ID
- Hide tabs on woocommerce product editor for user role
- Woocommerce add_to_cart non-register visitor not working
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- How to show loading spinner after click on add to cart button [closed]
- Authenticate user into wordpress via 3rd party system, both with the same domain
- WordPress select field – show current value?
- Creating a widget with a number of custom fields
- Arranging Product Details on Shop Page
- How to get woocommerce subscription next payment date or date when subscription expires in woocommerce_subscription_renewal_payment_complete hook?
- Display Message if woocommerce coupon is not applicable to some items in the cart
- (Woocommerce) How to add a custom page between cart and checkout with a file upload field per product item in the cart?
- Force uppercase on some WooCommerce checkout fields input
- Display custom field without plugin in woocommerce
- How to output php between header and woocommerce container
- WooCommerce – How can I make single product gallery show two images on the slider at once?
- How to delete all customer user account that haven’t placed a single order?
- How do I hide ‘out of stock’ products in the admin ‘product’ page?
- Hide the prefix before the price of the product [closed]
- Backend users list – add Woocommerce meta to table
- Delete cookie when changing url (when navigating away from specific page of website)
- Widget without DIV wrapper
- Add custom field to Woocommerce add new attribute / edit page
- woocommerce axios react
- Woocommerce hook on address field change [closed]
- Maintenance mode just for WooCommerce shop pages [closed]
- Redirect no product url’s to static url
- Adding a custom Shipping methods field to an order
- WooCommerce – Create multiple product tags via rest api endpoint
- WooCommerce which roles and capabilities control user login re-direct to Woo Account Page?
- How can I convert woocommerce checkout fields in capital letters
- Conditional action hook
- Sending Email upon registration
- Migrating data from Woocommerce to another webapp
- get_term_meta returns false in widget
- Options to develop a non-ecommerce catalog?
- wp_set_object_terms setting only first id from array
- I need to export all products and images but I don’t know which table the images are in
- Add only sku to product url woocoomerce
- Purchase/order statistics plugin for viewing per payment menthod?
- Displaying Woocommerce Product Attributes on single product page
- WooCommerce – Child Category wont show, but Parent does
- How to hide a random text with a div tag using a class on product pages with a specific tag
- Categories on attribute archive pages
- How to solve `Error getting remote image` in woocommerce rest api script?
- How to force Woocommerce to deliver the product to the paypal adress which was used?
- Add username and password section in WooCommerce’s my account page
- Recently viewed products – Order by viewed
- Woocommerce: Search by custom attribute
- How to change user role after login?
- WooCommerce free shipping twice a week
- Product overlapping header
- merge tabs in woocommerce
- How to import products to Woo Commerce given that WP All Import keeps timing out
- WooCommerce subscriptions give option of manual renewal on checkout [closed]
- How to make a custom redirect in WooCommerce?
- Firstname and lastname greyout or hidden Billing details at next checkout like username is hidden [closed]
- How to use woo commerce login to authenticate code php pages?
- Change order status after checkout
- how to add custom reviews button in woocommerce order complete generated mail
- Click Count on Download a File
- How to add coupon expiry date into the followup emails?
- Not all strings are translated
- Custom Woocommerce checkout filed yields a Json error when validating [closed]
- access Woo commerce | WordPress methods externally
- How to display Woocommerce catagories
- Woocommerce set single city to sell to
- eCommerce solution doesn’t want to display its shortcodes or any content where it’s set to [closed]
- Woocommerce hidden fields with meta keys and values. how?
- How do I make a diagonal strikethrough on wordpress? [closed]
- Woocommerce – Remove ‘Buy Product’ Button from shop page [closed]
- Add woocommerce.css in template?
- Conflict between Woocommerce Booking + Woocommerce Product Options [closed]