Last active
April 10, 2019 12:38
-
-
Save WordPress-Handbuch/382833358fadd7a590083b3fa1d5ec70 to your computer and use it in GitHub Desktop.
Adding a simple shortcode for a new HTML bold italics tag through WordPress' hook mechanism
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
function wh_shortcode_boldanditalics( $attributes, $content ) { | |
// Hier kann beliebiger PHP-Code ausgeführt werden | |
return '<b><i>' . $content . '</i></b>'; | |
} | |
add_shortcode( 'fettkursiv', 'wh_shortcode_boldanditalics' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment