| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
class WINP_SnippetsTaxonomy extends Wbcr_FactoryTaxonomies335_Taxonomy { |
| 9 |
|
| 10 |
/** |
| 11 |
* Custom post name. |
| 12 |
* @var string |
| 13 |
*/ |
| 14 |
public $name = WINP_SNIPPETS_TAXONOMY; |
| 15 |
|
| 16 |
public $post_types = WINP_SNIPPETS_POST_TYPE; |
| 17 |
|
| 18 |
/** |
| 19 |
* Template that defines a set of type options. |
| 20 |
* Allowed values: public, private, internal. |
| 21 |
* @var string |
| 22 |
*/ |
| 23 |
public $template = 'private'; |
| 24 |
|
| 25 |
/** |
| 26 |
* Capabilities for roles that have access to manage the type. |
| 27 |
* @link http://codex.wordpress.org/Roles_and_Capabilities |
| 28 |
* @var array |
| 29 |
*/ |
| 30 |
public $capabilities = array('administrator'); |
| 31 |
|
| 32 |
function __construct($plugin) |
| 33 |
{ |
| 34 |
$this->plural_title = __( 'Tags', 'insert-php' ); |
| 35 |
$this->singular_title = __( 'Tag', 'insert-php' ); |
| 36 |
|
| 37 |
$this->options['hierarchical'] = false; |
| 38 |
$this->options['show_admin_column'] = true; |
| 39 |
$this->options['show_in_nav_menus'] = true; |
| 40 |
$this->options['update_count_callback'] = ''; // use default handler |
| 41 |
$this->options['show_in_quick_edit'] = true; |
| 42 |
|
| 43 |
parent::__construct( $plugin ); |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* Taxonomy configurator. |
| 48 |
*/ |
| 49 |
public function configure() |
| 50 |
{ |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
|
| 55 |
|