wp_video_shortcode_library

wp_video_shortcode_library

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_video_shortcode_library') is found 3 times:

  • /wp-includes/media.php line 3695
    3691
    3692
    3693
    3694
    3695
    3696
    3697
    3698
    3699
    3700
    * @since 3.6.0
     *
     * @param string $library Media library used for the video shortcode.
     */
    $library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' );
    if ( 'mediaelement' === $library && did_action( 'init' ) ) {
        wp_enqueue_style( 'wp-mediaelement' );
        wp_enqueue_script( 'wp-mediaelement' );
        wp_enqueue_script( 'mediaelement-vimeo' );
    }
  • /wp-includes/script-loader.php line 1159
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
        'stretching'            => 'responsive',
        /** This filter is documented in wp-includes/media.php */
        'audioShortcodeLibrary' => apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ),
        /** This filter is documented in wp-includes/media.php */
        'videoShortcodeLibrary' => apply_filters( 'wp_video_shortcode_library', 'mediaelement' ),
    );
    did_action( 'init' ) && $scripts->localize(
        'mediaelement',
        '_wpmejsSettings',
        /**
         * Filters the MediaElement configuration settings.
  • /wp-includes/widgets/class-wp-widget-media-video.php line 176
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    * @since 4.8.0
     */
    public function enqueue_preview_scripts() {
        /** This filter is documented in wp-includes/media.php */
        if ( 'mediaelement' === apply_filters( 'wp_video_shortcode_library', 'mediaelement' ) ) {
            wp_enqueue_style( 'wp-mediaelement' );
            wp_enqueue_script( 'mediaelement-vimeo' );
            wp_enqueue_script( 'wp-mediaelement' );
        }
    }