> For the complete documentation index, see [llms.txt](https://docs.hivepress.io/developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivepress.io/developer-docs/framework/blocks/callback.md).

# Callback

This block type calls a custom function and renders its output.

### Parameters

* **callback** - callable function name;
* **params** - an array of function arguments;
* **return** - set to `true` if the function returns the result instead of echoing it.

### Example

The code below renders the WordPress site title. It calls the WordPress [get\_bloginfo](https://developer.wordpress.org/reference/functions/get_bloginfo/) function with the `show` parameter set to "name". The `return` block parameter is set to `true` because this function returns the result instead of echoing it.

```php
echo ( new HivePress\Blocks\Callback(
	[
		'callback' => 'get_bloginfo',
		'params'   => [ 'name' ],
		'return'   => true,
	]
) )->render();
```
