| @@ -52,13 +52,13 @@ | ||
| 52 | 52 | $parent = 'wp-coder'; |
| 53 | 53 | $title = WPCoder::info( 'name' ) . ' version ' . WPCoder::info( 'version' ); |
| 54 | 54 | $main_title = WPCoder::info( 'name' ); |
| 55 | 55 | $menu_title = 'All Codes'; |
| 56 | - $capability = 'manage_options'; | |
| 56 | + $capability = 'unfiltered_html'; | |
| 57 | 57 | $slug = WPCoder::SLUG; |
| 58 | 58 | $url_update = 'https://wpcoder.pro/pricing/?utm_source=wordpress&utm_medium=admin-menu&utm_campaign=upgrade-to-pro'; |
| 59 | 59 | |
| 60 | - add_menu_page( $main_title, $main_title, 'manage_options', $slug, [ __CLASS__, 'plugin_page' ], $icon ); | |
| 60 | + add_menu_page( $main_title, $main_title, 'unfiltered_html', $slug, [ __CLASS__, 'plugin_page' ], $icon ); | |
| 61 | 61 | |
| 62 | 62 | add_submenu_page( $slug, $title, $menu_title, $capability, $slug, [ __CLASS__, 'plugin_page' ] ); |
| 63 | 63 | |
| 64 | 64 | add_submenu_page( $slug, $title, 'Add new', $capability, $slug . '-settings', [ __CLASS__, 'settings' ] ); |