Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Enable the shortcode in the video link of the WordPress Elementor plugin section. Habilitar o shortcode no link de video da seção do Plugin Elementor do WordPress
add_action( 'init', function(){
add_action( 'elementor/frontend/section/before_render', function ( \Elementor\Element_Base $element ) {
if ( ! $element->get_settings( 'background_video_link' ) ) {
$element->set_settings( 'background_video_link', do_shortcode($element->get_settings( 'background_video_link' ) ) );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.