dashed-slug.net › Forums › General discussion › Plugin Overrides › Reply To: Plugin Overrides
July 23, 2018 at 8:13 am
#3835
Keymaster
public function shortcode( $atts, $content = ”, $tag ) {
$view = preg_replace( ‘/^wallets_/’, ”, $tag );
$atts = shortcode_atts(
array(
‘template’ => ‘default’,
‘views_dir’ => apply_filters( ‘wallets_views_dir’, __DIR__ . ‘/views’ ),
), $atts, “wallets_$view”
);