Effect simulating a tilting sheet of paper to reveal the navigation menu
A Pen by Marco Fugaro on CodePen.
| <?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 ); |
| <?php | |
| /** | |
| * @snippet //Eliminar bloques en administrador pagina del producto | |
| * @based on https://stackoverflow.com/questions/21672870/woocommerce-remove-meta-boxes | |
| */ | |
| function remove_metaboxes() { | |
| //remove_meta_box( 'postexcerpt' , 'product' , 'normal' ); Descripcion corta | |
| remove_meta_box( 'tagsdiv-product_tag' , 'product' , 'side' ); |
| <?php | |
| /** | |
| * @snippet Añadir campos al registro | |
| * @author https://www.cloudways.com/blog/add-woocommerce-registration-form-fields/ | |
| */ | |
| // 1. Add new register fields for WooCommerce registration. | |
| <?php | |
| /** | |
| * @snippet Añadir campos a la ficha de cliente () | |
| * @author https://jjmontalban.github.io/ | |
| */ | |
| add_filter( 'woocommerce_customer_meta_fields', 'custom_woocommerce_customer_meta_fields' ); | |
| //Añade el campo CIF y teléfono 2 a usuarios |
| <?php | |
| /** | |
| * @snippet Añadir nuevo campo al billing form | |
| */ | |
| add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields'); | |
| // Backend: Display editable custom billing fields | |
| //add_filter( 'woocommerce_admin_billing_fields' , 'add_admin_custom_fields' ); |
| <?php | |
| /** | |
| * @snippet Elimina obligatoriedad de contraseña fuerte | |
| */ | |
| add_action ('wp_print_scripts', function () { | |
| if (wp_script_is ('wc-password-strength-meter', 'enqueued')) | |
| wp_dequeue_script ('wc-password-strength-meter'); | |
| }, 100); |
| <?php | |
| /** | |
| * @snippet Change User Role for New Customers - WooCommerce | |
| * @compatible WC 4.6 | |
| * @based on https://businessbloomer.com/bloomer-armada/ | |
| */ | |
| /////////////////////////////// |
Effect simulating a tilting sheet of paper to reveal the navigation menu
A Pen by Marco Fugaro on CodePen.