• Resolved pber33

    (@pber33)


    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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Please Add shortcodename argument to shortcode_atts function’ is closed to new replies.