Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.80.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : testimonial.php
<?php
if(!function_exists('bwp_create_type_testimonial')  ){
    function bwp_create_type_testimonial(){
	$labels_testimonial = array(
		'name' => __( 'Testimonial', "wpbingo" ),
		'singular_name' => __( 'Testimonial', "wpbingo" ),
		'add_new' => __( 'Add New Testimonial', "wpbingo" ),
		'add_new_item' => __( 'Add New Testimonial', "wpbingo" ),
		'edit_item' => __( 'Edit Testimonial', "wpbingo" ),
		'new_item' => __( 'New Testimonial', "wpbingo" ),
		'view_item' => __( 'View Testimonial', "wpbingo" ),
		'search_items' => __( 'Search Testimonials', "wpbingo" ),
		'not_found' => __( 'No Testimonials found', "wpbingo" ),
		'not_found_in_trash' => __( 'No Testimonials found in Trash', "wpbingo" ),
		'parent_item_colon' => __( 'Parent Testimonial:', "wpbingo" ),
		'menu_name' => __( 'Testimonials', "wpbingo" ),
	);

	$args_testimonial = array(
	  'labels' => $labels_testimonial,
	  'hierarchical' => true,
	  'description' => __( 'List Testimonial', "wpbingo" ),
	  'supports' => array( 'title', 'editor', 'thumbnail','excerpt'),
	  'public' => true,
	  'show_ui' => true,
	  'show_in_menu' => true,
	  'menu_position' => 5,
	  'show_in_menu' => false,
	  'show_in_nav_menus' => true,
	  'publicly_queryable' => true,
	  'exclude_from_search' => false,
	  'has_archive' => true,
	  'query_var' => true,
	  'can_export' => true,
	  'rewrite' => true,
	  'capability_type' => 'post'
	);
	register_post_type( 'testimonial', $args_testimonial ); 
  }
  add_action( 'init','bwp_create_type_testimonial',0 );
}

© 2025 XylotrechusZ