PluginProbe ʕ •ᴥ•ʔ
PublishPress Capabilities – User Role Editor, Access Permissions, User Capabilities, Admin Menus / 1.9.6
PublishPress Capabilities – User Role Editor, Access Permissions, User Capabilities, Admin Menus v1.9.6
2.45.0 2.44.0 trunk 1.10 1.10.1 1.4.1 1.4.10 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5 1.5.1 1.5.10 1.5.11 1.5.2 1.5.3 1.5.4 1.5.5 1.5.7 1.5.8 1.5.9 1.6 1.6.1 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.8.1 1.9 1.9.10 1.9.12 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.9 2.0 2.0.2 2.0.3 2.1 2.1.1 2.10.0 2.10.1 2.10.2 2.10.3 2.11.1 2.12.1 2.12.2 2.13.0 2.14.0 2.15.0 2.16.0 2.17.0 2.18.0 2.18.2 2.19.0 2.19.1 2.19.2 2.2 2.2.1 2.20.0 2.21.0 2.22.0 2.23.0 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.30.0 2.31.0 2.32.0 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.40.0 2.41.0 2.42.0 2.43.0 2.5.0 2.5.1 2.5.2 2.6.0 2.6.1 2.7.0 2.7.1 2.8.0 2.8.1 2.9.0 2.9.1
capability-manager-enhanced / includes / CoreAdmin.php
capability-manager-enhanced / includes Last commit date
CoreAdmin.php 6 years ago admin.php 6 years ago backup-handler.php 6 years ago backup.php 6 years ago cap-helper.php 6 years ago filters-admin.php 6 years ago filters-woocommerce.php 7 years ago filters-wp_rest_workarounds.php 6 years ago filters.php 6 years ago functions-admin.php 6 years ago functions.php 6 years ago handler.php 6 years ago inflect-cme.php 7 years ago manager.php 6 years ago network.php 6 years ago pp-handler.php 6 years ago pp-ui.php 6 years ago publishpress-roles.php 6 years ago
CoreAdmin.php
46 lines
1 <?php
2 namespace PublishPress\Capabilities;
3
4 class CoreAdmin {
5 function __construct() {
6 add_action('admin_print_scripts', [$this, 'setUpgradeMenuLink'], 50);
7
8 if (is_admin()) {
9 $autoloadPath = PUBLISHPRESS_CAPS_ABSPATH . '/vendor/autoload.php';
10 if (file_exists($autoloadPath)) {
11 require_once $autoloadPath;
12 }
13
14 require_once PUBLISHPRESS_CAPS_ABSPATH . '/vendor/publishpress/wordpress-version-notices/includes.php';
15
16 add_filter(\PPVersionNotices\Module\TopNotice\Module::SETTINGS_FILTER, function ($settings) {
17 $settings['capabilities'] = [
18 'message' => 'You\'re using PublishPress Capabilities Free. The Pro version has more features and support. %sUpgrade to Pro%s',
19 'link' => 'https://publishpress.com/links/capabilities-banner',
20 'screens' => [
21 ['base' => 'toplevel_page_capsman'],
22 ['base' => 'capabilities_page_capsman-tool'],
23 ['base' => 'capabilities_page_capability-settings'],
24 ]
25 ];
26
27 return $settings;
28 });
29 }
30 }
31
32 function setUpgradeMenuLink() {
33 $url = 'https://publishpress.com/links/capabilities-menu';
34 ?>
35 <style type="text/css">
36 #toplevel_page_capsman ul li:last-of-type a {font-weight: bold !important; color: #FEB123 !important;}
37 </style>
38
39 <script type="text/javascript">
40 jQuery(document).ready(function($) {
41 $('#toplevel_page_capsman ul li:last a').attr('href', '<?php echo $url;?>').attr('target', '_blank').css('font-weight', 'bold').css('color', '#FEB123');
42 });
43 </script>
44 <?php
45 }
46 }