Support » Plugin: Meta Box - WordPress Custom Fields Framework » Plugin have some issues

  • Atta Ur Rehman

    (@atta-ur-rehman)


    Hi please check my code
    Following issue is coming.
    1- Images are auto saving and deleting form media library frame(popup).

    function artist_gallery_get_meta_box( $meta_boxes ) {
    $prefix = ‘artist-‘;

    $meta_boxes[] = array(
    ‘id’ => ‘artist-gall-metabox’,
    ‘title’ => esc_html__( ‘Artist Gallery’, ‘metabox-online-generator’ ),
    ‘post_types’ => array(‘artist’ ),
    ‘context’ => ‘advanced’,
    ‘priority’ => ‘default’,
    ‘fields’ => array(
    array(
    ‘id’ => $prefix . ‘artist-gallery’,
    ‘type’ => ‘file_advanced’,
    ‘name’ => esc_html__( ‘Add Gallery’, ‘metabox-online-generator’ ),
    ‘desc’ => esc_html__( ‘Add artist gallery collection’, ‘metabox-online-generator’ ),
    ‘mime_type’ => ‘image/jpeg’,
    ‘max_file_uploads’ => 9,
    ‘max_status’ => ‘true’,
    ‘size’ => 8,
    ),
    ),
    );

    return $meta_boxes;
    }
    add_filter( ‘rwmb_meta_boxes’, ‘artist_gallery_get_meta_box’ );

  • The topic ‘Plugin have some issues’ is closed to new replies.