Title: Please Add shortcodename argument to shortcode_atts function
Last modified: June 27, 2019

---

# Please Add shortcodename argument to shortcode_atts function

 *  Resolved [pber33](https://wordpress.org/support/users/pber33/)
 * (@pber33)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/please-add-shortcodename-argument-to-shortcode_atts-function/)
 * Hi. Thanks very much for creating this easy to use plugin. I’m currently using
   the plugin for one of my clients and its working great. I’m only having one small
   issue.
 * I want to filter one of the shortcode attributes. For me to be able to do this,
   the shortcode_atts function, line 78 browser-shot.php, needs to have a third 
   argument. I’ve made a small modification myself to make this possible, could 
   you please consider adding it to the next plugin update?
 * Please see the following example code:
 *     ```
       shortcode_atts(
       					array(
       						'url' => '',
       						'width' => 600,
       						'height' => 450,
       						'alt' => '',
       						'link' => '',
       						'target' => '',
       						'class' => '',
       						'image_class' => 'alignnone',
       						'rel' => '',
       						'display_link' => true,
       					),
       					$attributes, 
       					'browser-shots'
       				)
       ```
   
 * Setting this third attribute will allow the filter ‘shortcode_atts_browser-shots’
   to fire.
 * Thanks so much

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [binarymoon](https://wordpress.org/support/users/binarymoon/)
 * (@binarymoon)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/please-add-shortcodename-argument-to-shortcode_atts-function/#post-11680010)
 * Hi there – thanks for the message. I wasn’t aware of that parameter. Makes total
   sense to add it to the next version.
 * I’ve added it on github.
    [https://github.com/BinaryMoon/browser-shots/commit/6b70a8b8292bc8cc66e0da244b5438f7b05dd0ca](https://github.com/BinaryMoon/browser-shots/commit/6b70a8b8292bc8cc66e0da244b5438f7b05dd0ca)
 *  Thread Starter [pber33](https://wordpress.org/support/users/pber33/)
 * (@pber33)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/please-add-shortcodename-argument-to-shortcode_atts-function/#post-11681008)
 * Hi [@binarymoon](https://wordpress.org/support/users/binarymoon/). Thank for 
   the fast response, very much appreciated. Have a good one

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Please Add shortcodename argument to shortcode_atts function’ is closed
to new replies.

 * ![](https://ps.w.org/browser-shots/assets/icon-128x128.png?rev=2550604)
 * [Browser Screenshots](https://wordpress.org/plugins/browser-shots/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/browser-shots/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/browser-shots/)
 * [Active Topics](https://wordpress.org/support/plugin/browser-shots/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/browser-shots/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/browser-shots/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pber33](https://wordpress.org/support/users/pber33/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/please-add-shortcodename-argument-to-shortcode_atts-function/#post-11681008)
 * Status: resolved