/*
Plugin Name: Elementor Shortcode
Plugin URI:
Description: Elementor で作ったページ/セクションをショートコードで表示する[el_sc id="xx"]
Version: 1.0.0
Author:くろぬこ
Author URI:
License: GPL2
*/
/*** echo \Elementor\Plugin::$instance->frontend->get_builder_content('XXXX' ); ***/
function el_sc_func($atts){
// echo "表示";
extract(shortcode_atts(array(
'id' => 0,
), $atts));
echo \Elementor\Plugin::$instance->frontend->get_builder_content($id);
}
add_shortcode( 'el_sc', 'el_sc_func' );
?>