Capabilities.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Plugin\Install; |
| 4 | |
| 5 | use AC; |
| 6 | use WP_Roles; |
| 7 | |
| 8 | class Capabilities implements AC\Plugin\Install { |
| 9 | |
| 10 | public function install() { |
| 11 | global $wp_roles; |
| 12 | |
| 13 | if ( ! $wp_roles ) { |
| 14 | $wp_roles = new WP_Roles(); |
| 15 | } |
| 16 | |
| 17 | do_action( 'ac/capabilities/init', $wp_roles ); |
| 18 | } |
| 19 | |
| 20 | } |