get_price()) { // Remove the "Request Price" button if the product has a price remove_action('woocommerce_single_product_summary', 'your_request_price_button_function', 20); } } }); // Function that adds the "Request Price" button (example function) // Replace 'your_request_price_button_function' with the actual function adding the button function your_request_price_button_function() { echo ''; }