# unagi/0.2/includes/utils.php

Unagi, version 0.2. 31 lines.

- Page: https://pluginprobe.com/plugins/unagi/0.2/code/includes/utils.php
- Raw: https://pluginprobe.com/plugins/unagi/0.2/raw/includes/utils.php
- Modified: 2021-04-16T00:24:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/unagi/0.2/code/includes/utils.php#L10-L20`.

```php
<?php
/**
 * Utilities
 *
 * @package Unagi
 */

namespace Unagi\Utils;

/**
 * Determine displaying notifications nicely vs directly
 * When we show them "nicely" we parse the buffer and count notifications node from the dom
 * And we keep the count
 *
 * @return mixed|void
 * @since 0.1.0
 */
function show_notifications_nicely() {
	return apply_filters( 'unagi_show_notifications_nicely', true );
}

/**
 * Min. required capability to use this plugin
 *
 * @return mixed|void
 * @since 0.1.0
 */
function required_capability() {
	return apply_filters( 'unagi_required_capability', 'edit_posts' );
}

```
