wp_plupload_default_settings example


    wp_enqueue_script( 'media-editor' );
    wp_localize_script( 'media-views', '_wpMediaViewsL10n', $strings );

    wp_enqueue_script( 'media-audiovideo' );
    wp_enqueue_style( 'media-views' );
    if ( is_admin() ) {
        wp_enqueue_script( 'mce-view' );
        wp_enqueue_script( 'image-edit' );
    }
    wp_enqueue_style( 'imgareaselect' );
    wp_plupload_default_settings();

    require_once ABSPATH . WPINC . '/media-template.php';
    add_action( 'admin_footer', 'wp_print_media_templates' );
    add_action( 'wp_footer', 'wp_print_media_templates' );
    add_action( 'customize_controls_print_footer_scripts', 'wp_print_media_templates' );

    /** * Fires at the conclusion of wp_enqueue_media(). * * @since 3.5.0 */
    
Home | Imprint | This part of the site doesn't use cookies.