array( 'name' => __( 'Testimonial Sliders', 'aj-square-testimonial-slider' ), 'singular_name' => __( 'Testimonial Slider', 'aj-square-testimonial-slider' ), 'all_items' => __( 'All Sliders', 'aj-square-testimonial-slider' ), 'add_new_item' => __( 'Add New Testimonial Slider', 'aj-square-testimonial-slider' ), 'add_new' => __( 'Add New Slider', 'aj-square-testimonial-slider' ), 'new_item' => __( 'New Testimonial Slider', 'aj-square-testimonial-slider' ), 'edit_item' => __( 'Edit Testimonial Slider', 'aj-square-testimonial-slider' ), 'view_item' => __( 'View Testimonial Slider', 'aj-square-testimonial-slider' ), 'search_items' => __( 'Search Testimonial Sliders', 'aj-square-testimonial-slider' ), 'not_found' => __( 'No testimonial sliders found.', 'aj-square-testimonial-slider' ), 'not_found_in_trash' => __( 'No testimonial sliders found in Trash.', 'aj-square-testimonial-slider' ), 'menu_name' => __( 'Testimonial Sliders', 'aj-square-testimonial-slider' ), ), 'public' => false, 'show_ui' => true, 'show_in_menu' => false, 'show_in_rest' => false, 'supports' => array( 'title' ), 'has_archive' => false, 'rewrite' => array( 'slug' => 'testimonial-slider' ), ) ); register_post_type( 'bhub_testimonial', array( 'labels' => array( 'name' => __( 'Testimonials', 'aj-square-testimonial-slider' ), 'singular_name' => __( 'Testimonial', 'aj-square-testimonial-slider' ), 'all_items' => __( 'All Testimonials', 'aj-square-testimonial-slider' ), 'add_new_item' => __( 'Add New Testimonial', 'aj-square-testimonial-slider' ), 'add_new' => __( 'Add New', 'aj-square-testimonial-slider' ), 'new_item' => __( 'New Testimonial', 'aj-square-testimonial-slider' ), 'edit_item' => __( 'Edit Testimonial', 'aj-square-testimonial-slider' ), 'view_item' => __( 'View Testimonial', 'aj-square-testimonial-slider' ), 'search_items' => __( 'Search Testimonials', 'aj-square-testimonial-slider' ), 'not_found' => __( 'No testimonials found.', 'aj-square-testimonial-slider' ), 'not_found_in_trash' => __( 'No testimonials found in Trash.', 'aj-square-testimonial-slider' ), 'menu_name' => __( 'Testimonials', 'aj-square-testimonial-slider' ), ), 'public' => false, 'show_ui' => false, 'show_in_menu' => false, 'show_in_rest' => false, 'supports' => array( 'title', 'editor', 'thumbnail' ), 'has_archive' => false, 'rewrite' => array( 'slug' => 'testimonial' ), ) ); } public function change_title_placeholder( $title, $post ) { if ( isset( $post->post_type ) ) { if ( 'bridgehub_slider' === $post->post_type ) { $title = __( 'Enter Slider Name', 'aj-square-testimonial-slider' ); } elseif ( 'bhub_testimonial' === $post->post_type ) { $title = __( 'Enter Client Name', 'aj-square-testimonial-slider' ); } } return $title; } }