$out = apply_filters('asp_shortcode_output', $out, $id);
add_filter( 'asp_shortcode_output', 'asp_change_shortcode_output', 10, 2 );
function asp_change_shortcode_output( $output, $id ) {
// display the search shortcode for admins only
if ( current_user_can('administrator') ) {
return $out;
} else {
return '';
}
}