Title: Use in do_shortcode
Last modified: January 25, 2017

---

# Use in do_shortcode

 *  [rbarron](https://wordpress.org/support/users/rbarron/)
 * (@rbarron)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/use-in-do_shortcode/)
 * Trying to get the tooltip short code to evaluate in an action to hook into another
   plugin. The function below does not evaluate properly, is there a special technique
   for doing this?
 *     ```
       function inside_before_dept() {
       	echo do_shortcode( '[su_tooltip style="yellow" position="top" shadow="no" rounded="yes" size="default" title="Department Descriptions" content="Tooltip Content" behavior="hover" close="no" class=""]' . '<span class="green-text">Hover for Descriptions</span>' . '[/su_tooltip]' );
       }
       ```
   
 * Thank you.

The topic ‘Use in do_shortcode’ is closed to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [Shortcodes Ultimate - Content Elements](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

## Tags

 * [action](https://wordpress.org/support/topic-tag/action/)
 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [rbarron](https://wordpress.org/support/users/rbarron/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/use-in-do_shortcode/)
 * Status: not resolved