PHP 7.4.33
Preview: TermObject.php Size: 853 B
/var/www/candid-stg.bitkit.dk/httpdocs/wp-content/plugins/wp-graphql/deprecated/TermObject.php
<?php

namespace WPGraphQL\Type\ObjectType;

use WP_Taxonomy;

/**
 * @todo Remove in 3.0.0
 * @deprecated 1.12.0
 * @codeCoverageIgnore
 */
class TermObject {

	/**
	 * Register the Type for each kind of Taxonomy
	 *
	 * @param \WP_Taxonomy $tax_object The taxonomy being registered
	 *
	 * @return void
	 * @throws \Exception
	 * @deprecated 1.12.0
	 */
	public static function register_taxonomy_object_type( WP_Taxonomy $tax_object ) {
		_doing_it_wrong(
			__FUNCTION__,
			sprintf(
				// translators: %s is the class name that is deprecated.
				esc_html__( 'This function will be removed in the next major version of WPGraphQL. Use %s instead.', 'wp-graphql' ),
				esc_html( \WPGraphQL\Registry\Utils\TermObject::class . '::register_types()' ),
			),
			'1.12.0'
		);

		\WPGraphQL\Registry\Utils\TermObject::register_types( $tax_object );
	}
}

Directory Contents

Dirs: 0 × Files: 13
Name Size Perms Modified Actions
1.59 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
2.64 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.31 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.71 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.71 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.81 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
812 B lrw-r--r-- 2026-02-02 10:01:23
Edit Download
853 B lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.65 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.83 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.52 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
1.27 KB lrw-r--r-- 2026-02-02 10:01:23
Edit Download
721 B lrw-r--r-- 2026-02-02 10:01:23
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).