Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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');
Source by liampedleydesign.co.uk #
 
PREVIOUS NEXT
Tagged: #divi #layout #injector #shortcode #module #function #php #file
ADD COMMENT
Topic
Name
7+3 =