Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / plugins / dx-cars / class.cpt.php
diff options
context:
space:
mode:
Commite61899b5c8f6a779cbb08c46d1b8a707e99c8c0b (patch)
Author
 Peter-Gabriel Matev <petargabriel.matev@gmail.com>
2020-07-14 14:31:27 +0300
Committer
 GitHub <noreply@github.com>
2020-07-14 14:31:27 +0300
Files07b9db4e52603182f4876938cd787f1d5e4c561c /wp-content/plugins/dx-cars/class.cpt.php
tues-interns-2020-e61899b5c8f6a779cbb08c46d1b8a707e99c8c0b.tar
tues-interns-2020-e61899b5c8f6a779cbb08c46d1b8a707e99c8c0b.tar.gz
tues-interns-2020-e61899b5c8f6a779cbb08c46d1b8a707e99c8c0b.zip
Parente5d5d7e8c98713c824d61a93846a2724e6a80893 (diff)
Feature cars cpt (#90)
Co-authored-by: Syndamia <kamen.d.mladenov@protonmail.com>
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() );
- }
-}