frontend->get_builder_content_for_display($post_id); return $response; } add_shortcode('INSERT_ELEMENTOR','Elementor\wts_insert_elementor'); function enable_elementor(){ add_post_type_support( 'ae_global_templates', 'elementor' ); } add_action('elementor/init','Elementor\enable_elementor'); function print_ae_data($sections){ foreach ( $sections as $section_data ) { $section = new Element_Section( $section_data ); $section->print_element(); } } /** * Enable the use of shortcodes in text widgets. */ add_filter( 'widget_text', 'do_shortcode' ); function ae_plugin_action_links($links){ $links['go_pro'] = 'Go Pro'; return $links; } add_filter( 'plugin_action_links_' . WTS_AE_PLUGIN_BASE, 'Elementor\ae_plugin_action_links' );