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