Created
May 11, 2021 10:31
-
-
Save jjmontalban/675c8f10e0e09dd3841f1a07a8f30181 to your computer and use it in GitHub Desktop.
Ocultar columnas en el listado de productos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Ocultar algunas columnas en el listado de productos | |
* @based on https://www.esthersola.com/modificar-columnas-del-administrador-listado-productos-woocommerce/ | |
*/ | |
add_filter( 'manage_edit-product_columns', 'dpw_change_product_columns',10, 1 ); | |
function dpw_change_product_columns( $columns ) { | |
unset($columns['product_tag']); // para las etiquetas | |
//unset($columns['sku']); // referencia o sku | |
//unset($columns['product_type']); // tipo de producto | |
//unset($columns['date']); //para la fecha | |
//unset($columns['product_cat']); //para las categorías | |
unset($columns['featured']); //para las categorías | |
return $columns; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment