inject_video_max_width_style example

echo wp_video_shortcode(
                array_merge(
                    $instance,
                    compact( 'src' )
                ),
                $instance['content']
            );

            remove_filter( 'wp_video_shortcode', array( $this, 'inject_video_max_width_style' ) );
        } else {
            echo $this->inject_video_max_width_style( wp_oembed_get( $src ) );
        }
    }

    /** * Inject max-width and remove height for videos too constrained to fit inside sidebars on frontend. * * @since 4.8.0 * * @param string $html Video shortcode HTML output. * @return string HTML Output. */
    
Home | Imprint | This part of the site doesn't use cookies.