wp_audio_shortcode_library

wp_audio_shortcode_library

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_audio_shortcode_library') is found 3 times:

  • /wp-includes/media.php line 3444
    3440
    3441
    3442
    3443
    3444
    3445
    3446
    3447
    3448
    3449
    * @since 3.6.0
     *
     * @param string $library Media library used for the audio shortcode.
     */
    $library = apply_filters( 'wp_audio_shortcode_library', 'mediaelement' );
     
    if ( 'mediaelement' === $library && did_action( 'init' ) ) {
        wp_enqueue_style( 'wp-mediaelement' );
        wp_enqueue_script( 'wp-mediaelement' );
    }
  • /wp-includes/script-loader.php line 1157
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
        'pluginPath'            => includes_url( 'js/mediaelement/', 'relative' ),
        'classPrefix'           => 'mejs-',
        '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',
  • /wp-includes/widgets/class-wp-widget-media-audio.php line 135
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    * @since 4.8.0
     */
    public function enqueue_preview_scripts() {
        /** This filter is documented in wp-includes/media.php */
        if ( 'mediaelement' === apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ) ) {
            wp_enqueue_style( 'wp-mediaelement' );
            wp_enqueue_script( 'wp-mediaelement' );
        }
    }
     
    /**