// Mostrar el campo de texto cuando creas la categoría add_action( 'product_cat_add_form_fields', 'dl_wc_anadir_editor_1', 10, 2 ); function dl_wc_anadir_editor_1() { ?>
'seconddesc', 'quicktags' => array( 'buttons' => 'em,strong,link' ), 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator', 'theme_advanced_buttons2' => '', ), 'editor_css' => '', ); wp_editor( '', 'seconddesc', $settings ); ?>

term_id, 'seconddesc', true ) ); ?> 'seconddesc', 'quicktags' => array( 'buttons' => 'em,strong,link' ), 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator', 'theme_advanced_buttons2' => '', ), 'editor_css' => '', ); wp_editor( $second_desc, 'seconddesc', $settings ); ?>

term_id, 'seconddesc', true ) ) ) { echo '

' . wc_format_content( htmlspecialchars_decode( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) ) ) . '

'; } } } // Mostrar el texto en la categoría add_action( 'woocommerce_after_shop_loop', 'dl_mostrar_desc_abajo_cat', 5 ); function dl_mostrar_desc_abajo_cat() { if ( is_product_taxonomy() ) { $term = get_queried_object(); if ( $term && ! empty( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) ) ) { echo '

' . wc_format_content( htmlspecialchars_decode( get_woocommerce_term_meta( $term->term_id, 'seconddesc', true ) ) ) . '

; } } }