# groups/1.13.0/lib/core/interface-i-capable.php

Groups – Memberships and Access Control, version 1.13.0. 38 lines.

- Page: https://pluginprobe.com/plugins/groups/1.13.0/code/lib/core/interface-i-capable.php
- Raw: https://pluginprobe.com/plugins/groups/1.13.0/raw/lib/core/interface-i-capable.php
- Modified: 2016-02-08T13:01:16+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/groups/1.13.0/code/lib/core/interface-i-capable.php#L10-L20`.

```php
<?php
/**
 * interface-i-capable.php
 *
 * Copyright (c) "kento" Karim Rahimpur www.itthinx.com
 *
 * This code is released under the GNU General Public License.
 * See COPYRIGHT.txt and LICENSE.txt.
 *
 * This code is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * This header and all notices must be kept intact.
 *
 * @author Karim Rahimpur
 * @package groups
 * @since groups 1.0.0
 */

if ( !defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Capable interface OPM.
 */
interface I_Capable {

	/**
	 * Finds out if I have the given capability.
	 * 
	 * @param string|int $capability capability or capability id
	 * @return true if I can, otherwise false
	 */
	public function can( $capability ); 
}
```
