divi layout injector shortcode module in function php file

102

// 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');

Comments

Submit
0 Comments