Search
 
SCRIPT & CODE EXAMPLE
 

PHP

woocommerce if it is shop page remove breadcrumbs

// Remove breadcrumbs only from shop page
add_filter( 'woocommerce_before_main_content', 'remove_breadcrumbs');
function remove_breadcrumbs() {
    if(!is_product() && !is_product_category()) {
        remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0);
    }
}
Comment

PREVIOUS NEXT
Code Example
Php :: php check if number starts with 0 
Php :: php remove notice session already been started 
Php :: php return json response with status code 
Php :: how to separate date and time in laravel 
Php :: to stop XAMPP ubuntu 
Php :: laravel on delete set null 
Php :: php base64 encoded image to png 
Php :: check string in php 
Php :: get word between two characters php 
Php :: php executable not found visual studio code ubuntu 
Php :: php datetime to timestamp 
Php :: how to get video duration in php 
Php :: log magento 2.4.3 
Php :: create new laravel project cmd 
Php :: codeigniter form_validation email 
Php :: how to document php api with swagger 
Php :: laravel collection count 
Php :: laravel create migration add column 
Php :: php subtract seconds from datetime 
Php :: route not defined. laravel 9 
Php :: set php path in ubuntu 
Php :: datetime iso 8601 php 
Php :: php index of last element in array 
Php :: laravel timestamps on pivot table 
Php :: mac os change the php verison 
Php :: alter mysql 8 user root phpmyadmin first install 
Php :: setcookie in laravel 8 
Php :: how to calculate days difference between two dates in php 
Php :: get woocommerce order details Object 
Php :: php two decimal places 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =