Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- remove current bid / starting bid and bid now button from auction archive / loop template
- code goes to child-theme/functsion.php
- */
- function wpgenie_remove_auction_bid_button_loop( $html, $product ) {
- if ( method_exists( $product, 'is_type' ) && $product->is_type( 'auction' ) ) {
- return '';
- }
- return $html;
- }
- add_filter( 'woocommerce_loop_add_to_cart_link', 'wpgenie_remove_auction_bid_button_loop', 10, 2 );
- function wpgenie_remove_auction_price_loop( $price, $product ) {
- if ( is_admin() ) {
- return $price;
- }
- if ( method_exists( $product, 'is_type' ) && $product->is_type( 'auction' ) && ! is_product() ) {
- return '';
- }
- return $price;
- }
- add_filter( 'woocommerce_get_price_html', 'wpgenie_remove_auction_price_loop', 10, 2 );
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=xnhjjwvivt
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment