wordpress - Woocommerce product admin sort by stock -


is there anyway can sort stock? since reads 'stock x 30' helpful if sort high or low. there code can add functions.php enable feature?

easy enough... can accomplished code...

add_filter( 'manage_edit-product_sortable_columns', 'rei_product_sortable_columns' ); function rei_product_sortable_columns( $columns ) {     $custom = array(         'is_in_stock' => 'is_in_stock'     );     return wp_parse_args( $custom, $columns ); } 

but sort stock column has... example, 'in stock' or 'out of stock'


to have custom sort, (for example, using stock number), may follow instruction on blog post.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -