taxonomy_description( $tax ); } function taxonomy_description( $taxonomy ) { // enqueue $this->enqueue(); // filters add_filter( $taxonomy . '_edit_form_fields', function ($tag) { ?> true, 'media_buttons' => true, 'quicktags' => true, 'textarea_rows' => '15', 'textarea_name' => 'description' ); wp_editor( html_entity_decode( $tag->description, ENT_QUOTES, 'UTF-8' ), 'description1', $settings ); ?>
taxonomy === $taxonomy ) { echo << .wp-list-table img { max-width: 100%; height: auto; } HTML; } } ); } function enqueue() { remove_filter( 'pre_term_description', 'wp_filter_kses' ); remove_filter( 'term_description', 'wp_kses_data' ); add_filter( 'term_description', 'do_shortcode' ); } }