开发者 | pexlechris |
---|---|
更新时间 | 2024年2月23日 03:48 |
捐献地址: | 去捐款 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.4.3 |
版权: | GPLv2 |
版权网址: | 版权信息 |
Yes, because only administrators have access to WP Adminer. If a guest tries to access the WP Adminer URL, a 404 page will be shown up.
manage_options
capability.manage_network_options
capability.Just use the filter pexlechris_adminer_access_capabilities
and return the array of desired capabilities that you want to have access to WP Adminer.
For roles, just use the corresponding capabilities, while checking against particular roles in place of a capability is supported in part, this practice is discouraged as it may produce unreliable results.
This issue maybe is due to the caching engine that your browser OR server uses!
define( 'PEXLECHRIS_ADMINER_SLUG', 'wp-admin/adminer');
You need to use action pexlechris_adminer_head
as follows:
add_action('pexlechris_adminer_head', function(){ ?> <script nonce="<?php echo esc_attr( get_nonce() )?>"> // get_nonce is an adminer function // Place your JS code here </script> <style> /* Place your CSS code here */ </style> <?php });
In Adminer's website there is documentation about Adminer plugins and Adminer extensions.
In order to define function adminer_object() before this plugin define it, you need to define it inside the hook pexlechris_adminer_before_adminer_loads
.
More in the phpDoc below:
`
/**
The answer in this question is complicated. The best solution is to create a Database User with the appropriate privileges. Maybe you can do it also with WordPress actions. Read more in this support ticket.
By default, you haven't access to any database other than the site's database. In order to enable access, you need to add the following line code define('PEXLECHRIS_ADMINER_HAVE_ACCESS_ONLY_IN_WP_DB', false);
in the wp-config.php file.
Replace phpMyAdmin with Adminer and you will get a tidier user interface, better support for MySQL features, higher performance and more security. See detailed comparison. Adminer development priorities are: 1. Security, 2. User experience, 3. Performance, 4. Feature set, 5. Size.
define( 'PEXLECHRIS_ADMINER_SLUG', 'wp-admin/wp-adminer');
Undefined variable $Ah