__( 'Testimonials', 'testimonialsposttype' ), 'singular_name' => __( 'Testimonials Item', 'testimonialsposttype' ), 'add_new' => __( 'Add New Item', 'testimonialsposttype' ), 'add_new_item' => __( 'Add New Testimonials Item', 'testimonialsposttype' ), 'edit_item' => __( 'Edit Testimonials Item', 'testimonialsposttype' ), 'new_item' => __( 'Add New Testimonials Item', 'testimonialsposttype' ), 'view_item' => __( 'View Item', 'testimonialsposttype' ), 'search_items' => __( 'Search Testimonials', 'testimonialsposttype' ), 'not_found' => __( 'No Testimonials items found', 'testimonialsposttype' ), 'not_found_in_trash' => __( 'No Testimonials items found in trash', 'testimonialsposttype' ) ); $args = array( 'labels' => $labels, 'public' => true, 'supports' => array( 'title', 'thumbnail', 'editor'), 'capability_type' => 'post', 'rewrite' => array("slug" => "testimonials"), // Permalinks format 'menu_position' => 15, 'has_archive' => true, 'exclude_from_search' => true ); $args = apply_filters('testimonialsposttype_args', $args); if( current_theme_supports( 'audemedia_testimonials_cpt' ) ) { register_post_type( 'testimonials', $args ); } flush_rewrite_rules(); } function Testimonials_icon() { ?>