Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / plugins / dx-cars / class.cpt.php
diff options
context:
space:
mode:
1 files changed, 0 insertions, 23 deletions
-rw-r--r--wp-content/plugins/dx-cars/class.cpt.php23
diff --git a/wp-content/plugins/dx-cars/class.cpt.php b/wp-content/plugins/dx-cars/class.cpt.php
deleted file mode 100644
index 378a082..0000000
--- a/wp-content/plugins/dx-cars/class.cpt.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-class Vehicles {
- function init() {
- add_action( 'init', array( $this, 'cpt_create' ) );
- }
-
- public function labels() {
- $arr = array(
- 'labels' => array(
- 'name' => __( 'Vehicles' ),
- 'singular_name' => __( 'Vehicle' )
- ),
- 'public' => true,
- 'has_archive' => true,
- 'rewrite' => array( 'slug' => 'vehicles' ),
- 'show_in_rest' => true, );
- return $arr;
- }
-
- function cpt_create() {
- register_post_type( 'vehicles', $this->labels() );
- }
-}