Title: wp_video_shortcode_library
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘wp_video_shortcode_library’, string $library )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#wp--skip-link--target)

Filters the media library used for the video shortcode.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#parameters)󠁿

 `$library`string

Media library used for the video shortcode.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#source)󠁿

    ```php
    $library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/media.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/media.php#L3741)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/media.php#L3741-L3741)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Widget_Media_Video::enqueue_preview_scripts()](https://developer.wordpress.org/reference/classes/wp_widget_media_video/enqueue_preview_scripts/)`wp-includes/widgets/class-wp-widget-media-video.php` |

Enqueue preview scripts.

  | 
| [wp_video_shortcode()](https://developer.wordpress.org/reference/functions/wp_video_shortcode/)`wp-includes/media.php` |

Builds the Video shortcode output.

  | 
| [wp_default_scripts()](https://developer.wordpress.org/reference/functions/wp_default_scripts/)`wp-includes/script-loader.php` |

Registers all WordPress scripts.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_video_shortcode_library/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.6.0](https://developer.wordpress.org/reference/since/3.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_video_shortcode_library%2F)
before being able to contribute a note or feedback.