Changeset 4106
- Timestamp:
- 09/20/2016 10:43:21 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-o2-posting-access/wporg-o2-posting-access.php
r4105 r4106 17 17 */ 18 18 public function init() { 19 if ( ! defined( 'O2__PLUGIN_LOADED' ) ) { 20 return; 21 } 22 19 23 add_filter( 'user_has_cap', [ $this, 'add_post_capabilities' ], 10, 4 ); 20 24 add_action( 'admin_bar_menu', [ $this, 'remove_non_accessible_menu_items' ], 100 ); … … 195 199 } 196 200 197 add_action( ' o2_loaded', [ new Plugin(), 'init' ] );201 add_action( 'plugins_loaded', [ new Plugin(), 'init' ] );
Note: See TracChangeset
for help on using the changeset viewer.