I am learning more and more php as i go along. I sorta get the gist of how php hooks work (actions, filters)

I was attempting to add a filter to my child functions page:

add_filter('woocommerce_booking_single_check_availability_text', 'wc_change_button_text');

function wc_change_button_text() {
      return __( 'Add to cart', 'woocommerce' );         
}

Read more here: How can I change the text of WooCommerce Bookings "Book now" button?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: