WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

WC_Admin_Taxonomies::product_cat_notes() public WC 1.0

Add some notes to describe the behavior of the default category.

{} Это метод класса: WC_Admin_Taxonomies{}

Хуков нет.


Null. Ничего.


$WC_Admin_Taxonomies = new WC_Admin_Taxonomies();

Код WC_Admin_Taxonomies::product_cat_notes() WC 5.0.0

public function product_cat_notes() {
	$category_id   = get_option( 'default_product_cat', 0 );
	$category      = get_term( $category_id, 'product_cat' );
	$category_name = ( ! $category || is_wp_error( $category ) ) ? _x( 'Uncategorized', 'Default category slug', 'woocommerce' ) : $category->name;
	<div class="form-wrap edit-term-notes">
			<strong><?php esc_html_e( 'Note:', 'woocommerce' ); ?></strong><br>
					/* translators: %s: default category */
					esc_html__( 'Deleting a category does not delete the products in that category. Instead, products that were only assigned to the deleted category are set to the category %s.', 'woocommerce' ),
					'<strong>' . esc_html( $category_name ) . '</strong>'