Automattic\WooCommerce\Admin\Features\Navigation
Screen::register_taxonomy() public WC 1.0
Register taxonomy for use in WooCommerce Navigation screens.
{} Это метод класса: Screen{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$result = Screen::register_taxonomy( $taxonomy );
- $taxonomy(строка) (обязательный)
- Taxonomy to add.
Код Screen::register_taxonomy() Screen::register taxonomy WC 5.0.0
public static function register_taxonomy( $taxonomy ) {
if ( ! in_array( $taxonomy, self::$taxonomies, true ) ) {
self::$taxonomies[] = $taxonomy;
}
}