Created
December 19, 2022 14:44
-
-
Save thierrypigot/c757dcc8fd90a2712a68a32298a7927f to your computer and use it in GitHub Desktop.
Shortcode 2
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
<?php | |
function my_custom_shortcode($params) { | |
echo 'Hello World! You specified the following parameters: ' . $params['param1'] . ' and ' . $params['param2']; | |
} | |
add_shortcode('hello_world', 'my_custom_shortcode'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment