Title: Parameters
Last modified: April 10, 2018

---

# Parameters

 *  Resolved [alexlees](https://wordpress.org/support/users/alexlees/)
 * (@alexlees)
 * [8 years ago](https://wordpress.org/support/topic/parameters-6/)
 * Hi
 * We are using the basic version of your plugin and love the results.
 * We have a piece of PHP code to load an Excel spreadsheet into an article. This
   works fine but we have to create a snippet for each article and we want to make
   it as easy as possible for any future developers of our site.
 * We would like to be able to pass a filename of a spreadsheet as a parameter to
   a piece of PHP from the shortcode. Is this possible?
 * The filename is already specified in the PHP code but if we can specify this 
   from the shortcode using a variable it would allow us to only have to use one
   snippet.
 * In the article you would have [xyz-ips snippet=”LoadCheatSheet”, “c:\\xampp\\
   test data\\SATU\\SATU (data).xls”]. The PHP code would then load the data from
   the specified file and display the results as normal.
 * Is this possible?
 * Thanks

Viewing 1 replies (of 1 total)

 *  [44mxyzscripts](https://wordpress.org/support/users/44mxyzscripts/)
 * (@44mxyzscripts)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/parameters-6/#post-10204166)
 * Hi,
    Apologies for the late reply. You could pass additional parameter into the
   shortcode but that feature exists on the plugin’s premium version.

Viewing 1 replies (of 1 total)

The topic ‘Parameters’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [44mxyzscripts](https://wordpress.org/support/users/44mxyzscripts/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/parameters-6/#post-10204166)
 * Status: resolved