/ Published in: PHP
Expand |
Embed | Plain Text
<?php function my_example() { return 'my example text'; // or echo } ?> <?php add_shortcode('mytest', 'my_example');?> Then add [mytest] to the post.
You need to login to post a comment.
