Last active
June 25, 2016 16:13
-
-
Save bjarneo/65115610d02ac0dd77597464014bddfb to your computer and use it in GitHub Desktop.
iframe shortcode example
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 usage in the WYSIWYG: [iframe src="https://gist.github.com/bjarneo/65115610d02ac0dd77597464014bddfb"] | |
| function iframe($atts) { | |
| return sprintf( | |
| '<iframe src="%s" />', | |
| $atts['src'] | |
| ); | |
| } | |
| add_shortcode('iframe', 'iframe'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment