Created
August 5, 2018 08:02
-
-
Save MrsDivi/ba88dbfd22253c48eb04ad977c7fc944 to your computer and use it in GitHub Desktop.
Code-Snippet für das Einbetten von Modulen in Divi per Shortcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Shortcode to show the 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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment