Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / plugins
diff options
context:
space:
mode:
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;
}