Search
 
SCRIPT & CODE EXAMPLE
 

PHP

woocommerce custom sale banner, sash

add_filter('woocommerce_sale_flash', 'ydcoza_custom_sales_badge');
function ydcoza_custom_sales_badge() {
  $url = site_url().'/wp-content/uploads/2021/03/best_seller_sash.png';
  $img = '<div class="ydcoza-sale-banner"><img src="'. $url .'"></img></div>';
  return $img;
}
Comment

PREVIOUS NEXT
Code Example
Php :: db symfony 
Php :: yii2 where in 
Php :: php round all values in array 
Php :: php get time in milliseconds 
Php :: php to save txt html 
Php :: wordpress get post author link 
Php :: redirect back in codeigniter 
Php :: get count sql query in php 
Php :: rollback laravel transaction 
Php :: php redirect if not logged in 
Php :: increament single column laravel current value + 1 
Php :: redirect all request to public folder laravel htaccess 
Php :: laravel default websie ar 
Php :: destroy session php 
Php :: Check duplicate email in laravel using jQuery 
Php :: how to add attribute to the request object in laravel 
Php :: php sleep half a second 
Php :: phpstan exclude line 
Php :: calculate time difference php 
Php :: How to use php to set title 
Php :: php date from mysql and date 
Php :: switch php version 
Php :: first letter capital of every word in php 
Php :: laravel model relationship find soft deleted 
Php :: deprecated filter_var() phpmailer 
Php :: php median 
Php :: php remove space before and after string 
Php :: php get end date of month 
Php :: laravel install production 
Php :: php delete item from array 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =