Title: Shortcode variables in multiple functions
Last modified: August 19, 2016

---

# Shortcode variables in multiple functions

 *  [Slushman](https://wordpress.org/support/users/butimnoexpert/)
 * (@butimnoexpert)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/shortcode-variables-in-multiple-functions/)
 * I have a simple plugin that has three functions:
    One to create the shortcode
   One that creates what the shortcode displays on the page And one that puts info
   in the HTML head (like javascripts, etc).
 * I’ve gotten shortcode variables to pass into the first two functions, but I need
   to pass them into the third as well, how would I accomplish that? Every way I’ve
   tried doesn’t seem to work.

The topic ‘Shortcode variables in multiple functions’ is closed to new replies.

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Slushman](https://wordpress.org/support/users/butimnoexpert/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/shortcode-variables-in-multiple-functions/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
