PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.6.0
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.6.0
2.7.7 2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 All 28 releases
insert-php / admin / types / snippets-taxonomy.php

snippets-taxonomy.php in Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts 2.6.0, at admin/types/snippets-taxonomy.php

55 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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