How to change add to cart button in wordpress
// To change add to cart text on single product page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' );
function woocommerce_custom_single_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' );
}
// To change add to cart text on product archives(Collection) page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );
function woocommerce_custom_product_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' );
}
Also in PHP:
- current time input field in laravel form
- Best code editors for php
- PHP Startup: Unable to load dynamic library 'curl'
- blob image to base64 php
- filer validation in laravel
- best way to redirect with php
- base64 decocde shoiing special char in php
- export html table data to excel in php
- carbon now
- array_unique
- date function attributes in php
- current date() in php
- error show all php
- does php use integer divison
- clear array php
- composer install in laravel project
- date time format list php
- errorLevel php no warnings
- check var type php
- SET CURRENT DATE TIME IN PHP'
- file to base64
- codeigniter get insert iditer print last query
- defaultStringLength laravel
- base64 php decode with password