Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / plugins
diff options
context:
space:
mode:
Commite14dc2348ae113dce9b8fa5854e2fbe4dc6579df (patch)
Author
 pgmatev <petargabriel.matev@gmail.com>
2020-07-03 14:46:42 +0300
Committer
 pgmatev <petargabriel.matev@gmail.com>
2020-07-03 14:46:42 +0300
Filesf5a977ed0896a3d75c9542599976c49a681cdc05 /wp-content/plugins
tues-interns-2020-e14dc2348ae113dce9b8fa5854e2fbe4dc6579df.tar
tues-interns-2020-e14dc2348ae113dce9b8fa5854e2fbe4dc6579df.tar.gz
tues-interns-2020-e14dc2348ae113dce9b8fa5854e2fbe4dc6579df.zip
Parent9fd7fbfb23610814427d097f6805c5476b12b394 (diff)
Parentf458359acbd6bda588ce6aeaa36d08575094e3d6 (diff)
Added hierarchical taxonomy for type
1 files changed, 8 insertions, 6 deletions
-rw-r--r--wp-content/plugins/dx-cars/class.cpt.php14
diff --git a/wp-content/plugins/dx-cars/class.cpt.php b/wp-content/plugins/dx-cars/class.cpt.php
index e4ff645..449927f 100644
--- a/wp-content/plugins/dx-cars/class.cpt.php
+++ b/wp-content/plugins/dx-cars/class.cpt.php
@@ -2,18 +2,20 @@
class Vehicles {
function init() {
add_action( 'init', array( $this, 'cpt_create' ) );
+ add_action( 'add_meta_boxes', array( $this, 'register_meta_boxes' ) );
}
public function labels() {
$arr = array(
'labels' => array(
- 'name' => __( 'Vehicles' ),
- 'singular_name' => __( 'Vehicle' )
+ 'name' => __( 'Vehicles' ),
+ 'singular_name' => __( 'Vehicle' ),
),
- 'public' => true,
- 'has_archive' => true,
- 'rewrite' => array( 'slug' => 'vehicles' ),
- 'show_in_rest' => true, );
+ 'public' => true,
+ 'has_archive' => true,
+ 'rewrite' => array( 'slug' => 'vehicles' ),
+ 'show_in_rest' => true,
+ 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ), );
return $arr;
}