PluginProbe
Polylang / 3.8.6
Polylang v3.8.6
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / src / Capabilities / User / Creator_Interface.php

Creator_Interface.php in Polylang 3.8.6, at src/Capabilities/User/Creator_Interface.php

27 lines 497 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Polylang
4 */
5
6 namespace WP_Syntex\Polylang\Capabilities\User;
7
8 use WP_User;
9
10 /**
11 * An interface for user creators.
12 * Allows to change the user decoration behavior at runtime.
13 *
14 * @since 3.8
15 */
16 interface Creator_Interface {
17 /**
18 * Returns the user instance to be used for capability checks.
19 *
20 * @since 3.8
21 *
22 * @param WP_User $user The user to decorate.
23 * @return User_Interface The user instance.
24 */
25 public function get( WP_User $user ): User_Interface;
26 }
27