Snippets: Conditionally Alter Portfolio Grid Module Readmore Link

function myprefix_vcex_shortcode_loop_atts( $atts ) {

	// Target portfolio grid
	if ( isset( $atts['base'] )
		&& 'vcex_portfolio_grid' == $atts['base']
	) {
		$atts['readmore_link'] = 'http://www.wpexplorer.com/';
	}

	// very important
	return $atts;

}
add_filter( 'vcex_shortcode_loop_atts', 'myprefix_vcex_shortcode_loop_atts' );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)