classes/Tools/Rekognition/RekognitionTool.php
public function attachmentTaxonomies() {
		$taxonomies = [
			'category' => 'Category',
			'post_tag' => 'Tag'
		];

		$attachTaxes = get_object_taxonomies('attachment');
		if (!empty($attachTaxes)) {
			foreach($attachTaxes as $attachTax) {
				if (!in_array($attachTax, ['post_tag', 'category'])) {
					$taxonomies[$attachTax] = ucwords(str_replace('_', ' ', $attachTax));
				}
			}
		}


		return $taxonomies;
	}
public function attachmentTaxonomies() {
		$taxonomies = [
			'category' => 'Category',
			'post_tag' => 'Tag'
		];

		$attachTaxes = get_object_taxonomies('attachment');
		if (!empty($attachTaxes)) {
			foreach($attachTaxes as $attachTax) {
				if (!in_array($attachTax, ['post_tag', 'category'])) {
					$taxonomies[$attachTax] = ucwords(str_replace('_', ' ', $attachTax));
				}
			}
		}


		return $taxonomies;
	}
public function attachmentTaxonomies ( ) { $ taxonomies = [ 'category' => 'Category' , 'post_tag' => 'Tag' ] ; $ attachTaxes = get_object_taxonomies ( 'attachment' ) ; if ( ! empty ( $ attachTaxes ) ) { foreach ( $ attachTaxes as $ attachTax ) { if ( ! in_array ( $ attachTax , [ 'post_tag' , 'category' ] ) ) { $ taxonomies [ $ attachTax ] = ucwords ( str_replace ( '_' , ' ' , $ attachTax ) ) ; } } } return $ taxonomies ; }
Returns a list of taxonomies for Attachments, used in the Rekognition settings page.
@return array
Returns a list of taxonomies for Attachments used in the Rekognition settings page .