|
|
@@ -28,7 +28,7 @@ function bones_ahoy() {
|
|
|
load_theme_textdomain( 'bonestheme', get_template_directory() . '/library/translation' );
|
|
|
|
|
|
// USE THIS TEMPLATE TO CREATE CUSTOM POST TYPES EASILY
|
|
|
- require_once( 'library/custom-post-type.php' );
|
|
|
+ //require_once( 'library/custom-post-type.php' );
|
|
|
|
|
|
// launching operation cleanup
|
|
|
add_action( 'init', 'bones_head_cleanup' );
|
|
|
@@ -254,6 +254,14 @@ add_action('wp_enqueue_scripts', 'bones_fonts');
|
|
|
// ************************************************************ \\
|
|
|
|
|
|
|
|
|
+
|
|
|
+function post_remove () //creating functions post_remove for removing menu item
|
|
|
+{
|
|
|
+ remove_menu_page('edit.php');
|
|
|
+}
|
|
|
+
|
|
|
+add_action('admin_menu', 'post_remove');
|
|
|
+
|
|
|
// https://blog.teamtreehouse.com/create-your-first-wordpress-custom-post-type
|
|
|
https://developer.wordpress.org/reference/functions/register_post_type/#capability_type
|
|
|
|
|
|
@@ -287,7 +295,7 @@ function mitarbeiter() {
|
|
|
'public' => true,
|
|
|
'show_ui' => true,
|
|
|
'show_in_menu' => true,
|
|
|
- 'menu_position' => 60,
|
|
|
+ 'menu_position' => 11,
|
|
|
'show_in_admin_bar' => true,
|
|
|
'show_in_nav_menus' => true,
|
|
|
'can_export' => true,
|
|
|
@@ -330,7 +338,7 @@ function projekte() {
|
|
|
'public' => true,
|
|
|
'show_ui' => true,
|
|
|
'show_in_menu' => true,
|
|
|
- 'menu_position' => 60,
|
|
|
+ 'menu_position' => 11,
|
|
|
'show_in_admin_bar' => true,
|
|
|
'show_in_nav_menus' => true,
|
|
|
'can_export' => true,
|
|
|
@@ -375,7 +383,7 @@ function baugruppen() {
|
|
|
'public' => true,
|
|
|
'show_ui' => true,
|
|
|
'show_in_menu' => true,
|
|
|
- 'menu_position' => 60,
|
|
|
+ 'menu_position' => 11,
|
|
|
'show_in_admin_bar' => true,
|
|
|
'show_in_nav_menus' => true,
|
|
|
'can_export' => true,
|
|
|
@@ -420,7 +428,7 @@ function clients() {
|
|
|
'public' => true,
|
|
|
'show_ui' => true,
|
|
|
'show_in_menu' => true,
|
|
|
- 'menu_position' => 60,
|
|
|
+ 'menu_position' => 11,
|
|
|
'show_in_admin_bar' => true,
|
|
|
'show_in_nav_menus' => true,
|
|
|
'can_export' => true,
|
|
|
@@ -439,8 +447,8 @@ function testimonials() {
|
|
|
$labels = array(
|
|
|
'name' => _x('testimonials', 'Post Type General Name', 'theme'),
|
|
|
'singular_name' => _x('Testimonial', 'Post Type Singular Name', 'theme'),
|
|
|
- 'menu_name' => __('testimonials', 'theme'),
|
|
|
- 'name_admin_bar' => __('testimonials', 'theme'),
|
|
|
+ 'menu_name' => __('Testimonials', 'theme'),
|
|
|
+ 'name_admin_bar' => __('Testimonials', 'theme'),
|
|
|
'parent_item_colon' => __('Parent testimonials:', 'theme'),
|
|
|
'all_items' => __('All testimonials', 'theme'),
|
|
|
'add_new_item' => __('Add New testimonial', 'theme'),
|
|
|
@@ -464,7 +472,7 @@ function testimonials() {
|
|
|
'public' => true,
|
|
|
'show_ui' => true,
|
|
|
'show_in_menu' => true,
|
|
|
- 'menu_position' => 60,
|
|
|
+ 'menu_position' => 11,
|
|
|
'show_in_admin_bar' => true,
|
|
|
'show_in_nav_menus' => true,
|
|
|
'can_export' => true,
|
|
|
@@ -484,8 +492,8 @@ function slides() {
|
|
|
$labels = array(
|
|
|
'name' => _x('Slides', 'Post Type General Name', 'theme'),
|
|
|
'singular_name' => _x('Slide', 'Post Type Singular Name', 'theme'),
|
|
|
- 'menu_name' => __('slides', 'theme'),
|
|
|
- 'name_admin_bar' => __('slides', 'theme'),
|
|
|
+ 'menu_name' => __('Slides', 'theme'),
|
|
|
+ 'name_admin_bar' => __('Slides', 'theme'),
|
|
|
'parent_item_colon' => __('Parent slides:', 'theme'),
|
|
|
'all_items' => __('All slides', 'theme'),
|
|
|
'add_new_item' => __('Add New slide', 'theme'),
|
|
|
@@ -509,7 +517,7 @@ function slides() {
|
|
|
'public' => true,
|
|
|
'show_ui' => true,
|
|
|
'show_in_menu' => true,
|
|
|
- 'menu_position' => 60,
|
|
|
+ 'menu_position' => 11,
|
|
|
'show_in_admin_bar' => true,
|
|
|
'show_in_nav_menus' => true,
|
|
|
'can_export' => true,
|