divi layout injector shortcode module in function php file code example
Example: divi layout injector shortcode module in function php file
// Shortcode pour afficher le module
function showmodule_shortcode ($ moduleid) {
extract (shortcode_atts (array ('id' => '*'), $ moduleid));
return do_shortcode ('[et_pb_section global_module = "'. $ id. '"] [/ et_pb_section]');
}
add_shortcode ('showmodule', 'showmodule_shortcode');