Last active
June 21, 2023 10:39
-
-
Save joseconti/9969a4bc821c8ea2e0dbc4e553ab216c to your computer and use it in GitHub Desktop.
Añadir Gutenberg a la edición de productos en WooCommerce
This file contains hidden or 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 | |
function jconti_activar_gutenberg_en_productos( $can_edit, $post_type ){ | |
if ( $post_type === 'product' ){ | |
$can_edit = true; | |
} | |
return $can_edit; | |
} | |
add_filter( 'use_block_editor_for_post_type', 'jconti_activar_gutenberg_en_productos', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment