> For the complete documentation index, see [llms.txt](https://knowledgebase.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.ajaxsearchpro.com/hooks/filters/query-and-output/asp_shortcode_output.md).

# asp\_shortcode\_output

```php
$out = apply_filters('asp_shortcode_output', $out, $id);
```

### Parameters

* **$out** (string) - shortcode output
* **$id** (int) - search instance ID

### Usage

```php
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 '';
	}
}
```
