Created
April 19, 2020 19:52
-
-
Save taricco/fadc6feba728ef2f8e0a93e052c8f844 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
| add_shortcode('cat_description', 'wsv_cat_description_shortcode'); | |
| function wsv_cat_description_shortcode($atts){ | |
| $a = shortcode_atts( array( | |
| 'id' => 0, | |
| ), $atts ); | |
| return category_description($a['id']); | |
| } | |
| [cat_description id="0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment