wp_video_shortcode_override

wp_video_shortcode_override

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_video_shortcode_override') is found 1 times:

  • /wp-includes/media.php line 3597
    3593
    3594
    3595
    3596
    3597
    3598
    3599
    3600
    3601
    3602
    3603
    * @param array  $attr     Attributes of the shortcode. See {@see wp_video_shortcode()}.
     * @param string $content  Video shortcode content.
     * @param int    $instance Unique numeric ID of this video shortcode instance.
     */
    $override = apply_filters( 'wp_video_shortcode_override', '', $attr, $content, $instance );
     
    if ( '' !== $override ) {
        return $override;
    }
     
    $video = null;

See this hook used in plugins: