wp_playlist_scripts example


    public function enqueue_preview_scripts() {
        require_once dirname( __DIR__ ) . '/media.php';

        wp_playlist_scripts( 'audio' );
        wp_playlist_scripts( 'video' );
    }

    /** * Loads the required scripts and styles for the widget control. * * @since 4.8.0 */
    public function enqueue_admin_scripts() {
        wp_enqueue_editor();
        wp_enqueue_media();
        
Home | Imprint | This part of the site doesn't use cookies.