From 0a423174df8a7f56aea96122801e51b5f34685cb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 3 Jul 2020 11:34:43 +0300 Subject: Fixed the typos of the word 'Vehicle' in the cars cpt. --- wp-content/plugins/dx-cars/class.cpt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wp-content/plugins') diff --git a/wp-content/plugins/dx-cars/class.cpt.php b/wp-content/plugins/dx-cars/class.cpt.php index 0d0b4ab..378a082 100644 --- a/wp-content/plugins/dx-cars/class.cpt.php +++ b/wp-content/plugins/dx-cars/class.cpt.php @@ -8,16 +8,16 @@ class Vehicles { $arr = array( 'labels' => array( 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vechicle' ) + 'singular_name' => __( 'Vehicle' ) ), 'public' => true, 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vechicles' ), + 'rewrite' => array( 'slug' => 'vehicles' ), 'show_in_rest' => true, ); return $arr; } function cpt_create() { - register_post_type( 'vechicles', $this->labels() ); + register_post_type( 'vehicles', $this->labels() ); } } -- cgit v1.3.1-26-gb76a From 95716b6f4bdd74ab77949274b20bba5829214c10 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 3 Jul 2020 12:21:34 +0300 Subject: Removed unnecessary backup files. --- .../plugins/dx-cars/class.cpt_BACKUP_22290.php | 31 ---------------------- .../plugins/dx-cars/class.cpt_BACKUP_22630.php | 31 ---------------------- .../plugins/dx-cars/class.cpt_BACKUP_22791.php | 31 ---------------------- .../plugins/dx-cars/class.cpt_BACKUP_22872.php | 31 ---------------------- .../plugins/dx-cars/class.cpt_BACKUP_23011.php | 31 ---------------------- .../plugins/dx-cars/class.cpt_BACKUP_23099.php | 31 ---------------------- .../plugins/dx-cars/class.cpt_BACKUP_23386.php | 31 ---------------------- .../plugins/dx-cars/class.cpt_BASE_22290.php | 23 ---------------- .../plugins/dx-cars/class.cpt_BASE_22630.php | 23 ---------------- .../plugins/dx-cars/class.cpt_BASE_22791.php | 23 ---------------- .../plugins/dx-cars/class.cpt_BASE_22872.php | 23 ---------------- .../plugins/dx-cars/class.cpt_BASE_23011.php | 23 ---------------- .../plugins/dx-cars/class.cpt_BASE_23099.php | 23 ---------------- .../plugins/dx-cars/class.cpt_BASE_23386.php | 23 ---------------- .../plugins/dx-cars/class.cpt_LOCAL_22290.php | 23 ---------------- .../plugins/dx-cars/class.cpt_LOCAL_22630.php | 23 ---------------- .../plugins/dx-cars/class.cpt_LOCAL_22791.php | 23 ---------------- .../plugins/dx-cars/class.cpt_LOCAL_22872.php | 23 ---------------- .../plugins/dx-cars/class.cpt_LOCAL_23011.php | 23 ---------------- .../plugins/dx-cars/class.cpt_LOCAL_23099.php | 23 ---------------- .../plugins/dx-cars/class.cpt_LOCAL_23386.php | 23 ---------------- .../plugins/dx-cars/class.cpt_REMOTE_22290.php | 27 ------------------- .../plugins/dx-cars/class.cpt_REMOTE_22630.php | 27 ------------------- .../plugins/dx-cars/class.cpt_REMOTE_22791.php | 27 ------------------- .../plugins/dx-cars/class.cpt_REMOTE_22872.php | 27 ------------------- .../plugins/dx-cars/class.cpt_REMOTE_23011.php | 27 ------------------- .../plugins/dx-cars/class.cpt_REMOTE_23099.php | 27 ------------------- .../plugins/dx-cars/class.cpt_REMOTE_23386.php | 27 ------------------- 28 files changed, 728 deletions(-) delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BACKUP_22290.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BACKUP_22630.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BACKUP_22791.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BACKUP_22872.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BACKUP_23011.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BACKUP_23099.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BACKUP_23386.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BASE_22290.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BASE_22630.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BASE_22791.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BASE_22872.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BASE_23011.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BASE_23099.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_BASE_23386.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_LOCAL_22290.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_LOCAL_22630.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_LOCAL_22791.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_LOCAL_22872.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_LOCAL_23011.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_LOCAL_23099.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_LOCAL_23386.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_REMOTE_22290.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_REMOTE_22630.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_REMOTE_22791.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_REMOTE_22872.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_REMOTE_23011.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_REMOTE_23099.php delete mode 100644 wp-content/plugins/dx-cars/class.cpt_REMOTE_23386.php (limited to 'wp-content/plugins') diff --git a/wp-content/plugins/dx-cars/class.cpt_BACKUP_22290.php b/wp-content/plugins/dx-cars/class.cpt_BACKUP_22290.php deleted file mode 100644 index 206cd9d..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BACKUP_22290.php +++ /dev/null @@ -1,31 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'vehicles', $this->labels() ); -======= -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 ->>>>>>> e8f471f687fcdefe44b177833cd89c59a7c4d773 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BACKUP_22630.php b/wp-content/plugins/dx-cars/class.cpt_BACKUP_22630.php deleted file mode 100644 index 206cd9d..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BACKUP_22630.php +++ /dev/null @@ -1,31 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'vehicles', $this->labels() ); -======= -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 ->>>>>>> e8f471f687fcdefe44b177833cd89c59a7c4d773 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BACKUP_22791.php b/wp-content/plugins/dx-cars/class.cpt_BACKUP_22791.php deleted file mode 100644 index 206cd9d..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BACKUP_22791.php +++ /dev/null @@ -1,31 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'vehicles', $this->labels() ); -======= -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 ->>>>>>> e8f471f687fcdefe44b177833cd89c59a7c4d773 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BACKUP_22872.php b/wp-content/plugins/dx-cars/class.cpt_BACKUP_22872.php deleted file mode 100644 index 206cd9d..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BACKUP_22872.php +++ /dev/null @@ -1,31 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'vehicles', $this->labels() ); -======= -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 ->>>>>>> e8f471f687fcdefe44b177833cd89c59a7c4d773 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BACKUP_23011.php b/wp-content/plugins/dx-cars/class.cpt_BACKUP_23011.php deleted file mode 100644 index 206cd9d..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BACKUP_23011.php +++ /dev/null @@ -1,31 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'vehicles', $this->labels() ); -======= -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 ->>>>>>> e8f471f687fcdefe44b177833cd89c59a7c4d773 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BACKUP_23099.php b/wp-content/plugins/dx-cars/class.cpt_BACKUP_23099.php deleted file mode 100644 index 206cd9d..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BACKUP_23099.php +++ /dev/null @@ -1,31 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'vehicles', $this->labels() ); -======= -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 ->>>>>>> e8f471f687fcdefe44b177833cd89c59a7c4d773 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BACKUP_23386.php b/wp-content/plugins/dx-cars/class.cpt_BACKUP_23386.php deleted file mode 100644 index 206cd9d..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BACKUP_23386.php +++ /dev/null @@ -1,31 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'vehicles', $this->labels() ); -======= -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 ->>>>>>> e8f471f687fcdefe44b177833cd89c59a7c4d773 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BASE_22290.php b/wp-content/plugins/dx-cars/class.cpt_BASE_22290.php deleted file mode 100644 index 0d0b4ab..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BASE_22290.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vechicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vechicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { - register_post_type( 'vechicles', $this->labels() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BASE_22630.php b/wp-content/plugins/dx-cars/class.cpt_BASE_22630.php deleted file mode 100644 index 0d0b4ab..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BASE_22630.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vechicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vechicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { - register_post_type( 'vechicles', $this->labels() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BASE_22791.php b/wp-content/plugins/dx-cars/class.cpt_BASE_22791.php deleted file mode 100644 index 0d0b4ab..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BASE_22791.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vechicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vechicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { - register_post_type( 'vechicles', $this->labels() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BASE_22872.php b/wp-content/plugins/dx-cars/class.cpt_BASE_22872.php deleted file mode 100644 index 0d0b4ab..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BASE_22872.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vechicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vechicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { - register_post_type( 'vechicles', $this->labels() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BASE_23011.php b/wp-content/plugins/dx-cars/class.cpt_BASE_23011.php deleted file mode 100644 index 0d0b4ab..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BASE_23011.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vechicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vechicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { - register_post_type( 'vechicles', $this->labels() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BASE_23099.php b/wp-content/plugins/dx-cars/class.cpt_BASE_23099.php deleted file mode 100644 index 0d0b4ab..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BASE_23099.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vechicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vechicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { - register_post_type( 'vechicles', $this->labels() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_BASE_23386.php b/wp-content/plugins/dx-cars/class.cpt_BASE_23386.php deleted file mode 100644 index 0d0b4ab..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_BASE_23386.php +++ /dev/null @@ -1,23 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vechicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vechicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { - register_post_type( 'vechicles', $this->labels() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_LOCAL_22290.php b/wp-content/plugins/dx-cars/class.cpt_LOCAL_22290.php deleted file mode 100644 index 378a082..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_LOCAL_22290.php +++ /dev/null @@ -1,23 +0,0 @@ - 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() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_LOCAL_22630.php b/wp-content/plugins/dx-cars/class.cpt_LOCAL_22630.php deleted file mode 100644 index 378a082..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_LOCAL_22630.php +++ /dev/null @@ -1,23 +0,0 @@ - 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() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_LOCAL_22791.php b/wp-content/plugins/dx-cars/class.cpt_LOCAL_22791.php deleted file mode 100644 index 378a082..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_LOCAL_22791.php +++ /dev/null @@ -1,23 +0,0 @@ - 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() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_LOCAL_22872.php b/wp-content/plugins/dx-cars/class.cpt_LOCAL_22872.php deleted file mode 100644 index 378a082..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_LOCAL_22872.php +++ /dev/null @@ -1,23 +0,0 @@ - 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() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_LOCAL_23011.php b/wp-content/plugins/dx-cars/class.cpt_LOCAL_23011.php deleted file mode 100644 index 378a082..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_LOCAL_23011.php +++ /dev/null @@ -1,23 +0,0 @@ - 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() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_LOCAL_23099.php b/wp-content/plugins/dx-cars/class.cpt_LOCAL_23099.php deleted file mode 100644 index 378a082..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_LOCAL_23099.php +++ /dev/null @@ -1,23 +0,0 @@ - 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() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_LOCAL_23386.php b/wp-content/plugins/dx-cars/class.cpt_LOCAL_23386.php deleted file mode 100644 index 378a082..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_LOCAL_23386.php +++ /dev/null @@ -1,23 +0,0 @@ - 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() ); - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_REMOTE_22290.php b/wp-content/plugins/dx-cars/class.cpt_REMOTE_22290.php deleted file mode 100644 index 98f0d4b..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_REMOTE_22290.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_REMOTE_22630.php b/wp-content/plugins/dx-cars/class.cpt_REMOTE_22630.php deleted file mode 100644 index 98f0d4b..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_REMOTE_22630.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_REMOTE_22791.php b/wp-content/plugins/dx-cars/class.cpt_REMOTE_22791.php deleted file mode 100644 index 98f0d4b..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_REMOTE_22791.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_REMOTE_22872.php b/wp-content/plugins/dx-cars/class.cpt_REMOTE_22872.php deleted file mode 100644 index 98f0d4b..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_REMOTE_22872.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_REMOTE_23011.php b/wp-content/plugins/dx-cars/class.cpt_REMOTE_23011.php deleted file mode 100644 index 98f0d4b..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_REMOTE_23011.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_REMOTE_23099.php b/wp-content/plugins/dx-cars/class.cpt_REMOTE_23099.php deleted file mode 100644 index 98f0d4b..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_REMOTE_23099.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 - } -} diff --git a/wp-content/plugins/dx-cars/class.cpt_REMOTE_23386.php b/wp-content/plugins/dx-cars/class.cpt_REMOTE_23386.php deleted file mode 100644 index 98f0d4b..0000000 --- a/wp-content/plugins/dx-cars/class.cpt_REMOTE_23386.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - 'name' => __( 'Vehicles' ), - 'singular_name' => __( 'Vehicle' ) - ), - 'public' => true, - 'has_archive' => true, - 'rewrite' => array( 'slug' => 'vehicles' ), - 'show_in_rest' => true, ); - return $arr; - } - - function cpt_create() { -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 - } -} -- cgit v1.3.1-26-gb76a From f458359acbd6bda588ce6aeaa36d08575094e3d6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 3 Jul 2020 12:51:26 +0300 Subject: Properly added no-functionailty fields implimentation. --- wp-content/plugins/dx-cars/class.cpt.php | 57 +++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 15 deletions(-) (limited to 'wp-content/plugins') diff --git a/wp-content/plugins/dx-cars/class.cpt.php b/wp-content/plugins/dx-cars/class.cpt.php index 206cd9d..676a115 100644 --- a/wp-content/plugins/dx-cars/class.cpt.php +++ b/wp-content/plugins/dx-cars/class.cpt.php @@ -2,30 +2,57 @@ 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; } - function cpt_create() { -<<<<<<< HEAD + function cpt_create( $post ) { register_post_type( 'vehicles', $this->labels() ); -======= -<<<<<<< HEAD - register_post_type( 'Vehicles', $this->labels() ); -======= - register_post_type( 'vechicles', $this->labels() ); ->>>>>>> 64360a10b9c5fc6e67234e1f431381a4e63025d6 ->>>>>>> e8f471f687fcdefe44b177833cd89c59a7c4d773 + } + + function register_meta_boxes() { + add_meta_box( 'car-info', __( 'Car Information' ), array($this, 'display_callback'), 'vehicles' ); + } + + function display_callback( $post ) { + ?> +
+ + + + + + + + + + + + + + + + + + + + + +
Year:
Millage:
Price:
Photo:
Location:
+
+