Skip to content

Instantly share code, notes, and snippets.

@oddevan

oddevan/CardHash.php

Created Aug 30, 2019
Embed
What would you like to do?
<?php
namespace oddEvan\TrainerDB\Content\Taxonomy;
use WebDevStudios\OopsWP\Structure\Content\Taxonomy;
class CardHash extends Taxonomy {
protected $slug = 'card_hash';
protected $object_types = [ 'card' ];
protected function get_labels() : array {
return [
'name' => _x( 'Hashes', 'Taxonomy General Name', 'trainerdb' ),
'singular_name' => _x( 'Hash', 'Taxonomy Singular Name', 'trainerdb' ),
// other labels go here
];
}
protected function get_args() : array {
return [
'hierarchical' => false,
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.