Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.143.237.54
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/ombre-features/cpt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/ombre-features/cpt/testimonials_cpt.php
<?php
function register_ombretestimonials_posttype() {
    $labels = array(
        'name'              => esc_attr__( 'Testimonials', 'ombre' ),
        'singular_name'     => esc_attr__( 'Testimonial', 'ombre' ),
        'add_new'           => esc_attr__( 'Add new testimonial', 'ombre' ),
        'add_new_item'      => esc_attr__( 'Add new testimonial', 'ombre' ),
        'edit_item'         => esc_attr__( 'Edit testimonial', 'ombre' ),
        'new_item'          => esc_attr__( 'New testimonial', 'ombre' ),
        'view_item'         => esc_attr__( 'View testimonial', 'ombre' ),
        'search_items'      => esc_attr__( 'Search testimonials', 'ombre' ),
        'not_found'         => esc_attr__( 'No testimonial found', 'ombre' ),
        'not_found_in_trash'=> esc_attr__( 'No testimonial found in trash', 'ombre' ),
        'parent_item_colon' => esc_attr__( 'Parent testimonials:', 'ombre' ),
        'menu_name'         => esc_attr__( 'Testimonials', 'ombre' )
    );

    $taxonomies = array();
 
    $supports = array('title','thumbnail');
 
    $post_type_args = array(
        'labels'            => $labels,
        'singular_label'    => esc_attr__('Testimonial box', 'ombre'),
        'public'            => true,
        'exclude_from_search' => true,
        'show_ui'           => true,
        'show_in_nav_menus' => false,
        'publicly_queryable'=> true,
        'query_var'         => true,
        'capability_type'   => 'post',
        'has_archive'       => false,
        'hierarchical'      => false,
        'rewrite'           => array( 'slug' => 'ombretestimonials', 'with_front' => false ),
        'supports'          => $supports,
        'menu_position'     => 99,
        'menu_icon'         => 'dashicons-format-status',
        'taxonomies'        => $taxonomies
    );
    register_post_type('ombretestimonials',$post_type_args);
}
add_action('init', 'register_ombretestimonials_posttype');

function ombre_quoteinfobox( $meta_boxes ) {
    $prefix = 'ombre'; // Prefix for all fields
    $meta_boxes['ombre_quoteinfo'] = array(
        'id' => 'ombre_quoteinfo',
        'title' => esc_attr__( 'Testimonial', 'ombre'),
        'object_types' => array('ombretestimonials'), // post type
        'context' => 'normal', // normal or side
        'priority' => 'default', // default or high
        'show_names' => false, // Show field names on the left
        'fields' => array(
            array(
                'id' => $prefix . 'quotecontent',
                'type' => 'wysiwyg',
                'options' => array(
                    'wpautop' => true, // use wpautop?
                    'media_buttons' => false, // show insert/upload button(s)
                    'teeny' => true
                ),
            ),
        ),
    );

    return $meta_boxes;
}
add_filter( 'cmb2_meta_boxes', 'ombre_quoteinfobox' );

function ombretestimonials_image_box() {
    remove_meta_box( 'postimagediv', 'ombretestimonials', 'side' );
    add_meta_box('postimagediv', esc_attr__('Image', 'ombre'), 'post_thumbnail_meta_box', 'ombretestimonials', 'side', 'high');
}
add_action('do_meta_boxes', 'ombretestimonials_image_box');


?>

Youez - 2016 - github.com/yon3zu
LinuXploit