PluginProbe
Groups – Memberships and Access Control / 4.7.0
Groups – Memberships and Access Control v4.7.0
4.7.1 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 trunk 1.0.0-beta-1 1.0.0-beta-2 1.0.0-beta-3 1.0.0-beta-3b 1.0.0-beta-3c 1.0.0-beta-3d 1.1.4 1.1.5 1.10.0 1.10.1 1.10.2 1.10.3 1.11.0 1.11.1 1.11.2 1.11.3 1.12.0 1.13.0 All 131 releases
← All changes | lib/core/interface-i-capable.php +9 -3 1.11.34.7.0 View file →
@@ -29,10 +29,16 @@
29 29 interface I_Capable {
30 30
31 31 /**
32 32 * Finds out if I have the given capability.
33 - *
33 + *
34 + * @since 3.0.0 the optional $object parameter has been added (experimental)
35 + * @since 3.0.0 the optional $type parameter has been added (experimental)
36 + *
34 37 * @param string|int $capability capability or capability id
38 + * @param mixed|null $object (experimental, declaration might change)
39 + * @param mixed|null $args (experimental, declaration might change)
40 + *
35 41 * @return true if I can, otherwise false
36 42 */
37 - public function can( $capability );
38 -}
43 + public function can( $capability, $object = null, $args = null );
44 +}