Search
 
SCRIPT & CODE EXAMPLE
 

PHP

woocommerce_default_catalog_orderby desc

/**
 * This code should be added to functions.php of your theme
 **/

add_filter('woocommerce_default_catalog_orderby', 'custom_default_catalog_orderby');

function custom_default_catalog_orderby() {
     return 'date'; // Can also use title and price
}
Comment

PREVIOUS NEXT
Code Example
Php :: thems 
Php :: var_dump-type and value of expresion 
Php :: evaluate home tilde ~ in php 
Php :: hide extension 
Php :: pivot null in livewire refresh 
Php :: Wordpress Scheduled Post to be viewable on front end 
Php :: find common value from sub arrays 
Php :: auto complete order paid1 
Php :: get data from model in chunks laravel 
Php :: Undefined array key after unset() 
Php :: php array cartesian product 
Php :: laravel add model to one to many relationship 
Php :: date format in php 
Php :: date + 14 days php 
Php :: many to many relationship in laravel example stackoverflow 
Php :: validations php or js 
Php :: get all routes in laravel 
Php :: Read the index and hashid of the last block in the blockchain 
Php :: header redirect php 
Php :: laravel insert multiple rows from form 
Php :: symony type request 
Php :: datetime-local laravel migration data type 
Php :: copy(/Users/admin/Library/Caches/composer/files/fakerphp/faker 
Php :: word limit in php 
Php :: checks whether the session is set or not, if not it will redirect the user to login page. 
Php :: Fibers - PHP 8.1 
Php :: php script auf serve alle 5 minuten ausführen 
Php :: laravel seed table 
Php :: nano seed generator 
Php :: laravel required_if fileld has value 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =