Created
November 10, 2017 12:12
-
-
Save munirkamal/adfd9c96ed17f09c30c9a615f6d4e5df to your computer and use it in GitHub Desktop.
This file contains hidden or 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