I have a multisite installation with eight instances, with the first being the “main” website of an ecosystem.
I need to add the the wp super cache settings capability to the editor and administrator roles in every “child” site.
at the moment wp super cache settings are not visible, nor accessible to other roles than the superadministrator.
the issue is that the “main” site has some custom post types that I make accessible to the “children” websites. once a post i created, i need the editors and administrator to access the “Delete Cache On All Blogs” button inside the settings.
I tried this code with no success:
function custom_grant_cache_access() {
$admin_role = get_role('administrator');
if ($admin_role) {
$admin_role->add_cap('wp_cache_manage_options');
}
}
add_action('admin_init', 'custom_grant_cache_access');
function custom_cache_menu_access() {
if (current_user_can('administrator')) {
add_menu_page('WP Super Cache', 'WP Super Cache', 'wp_cache_manage_options', 'wp-cache', '', 'dashicons-admin-generic', 56);
}
}
add_action('network_admin_menu', 'custom_cache_menu_access');
is it possible in some way? or do you plan to update the plugin with this feature?
]]>we have been using the plugin for quite some time and it works just fine. Thank you for your work!
But now we found out that our rounding settings were not correct and we need to change them. That leads us to the need of setting prices for the shipping (that are displayed to the users) including our 21% VAT. Even though we have Woocommerce configured, so that we specify all prices including taxes, it works the opposite way for this plugin.
Do you think we are hitting some cross-plugin problem or is this the desired behaviour? If it is the desired behaviour, is there any way around it? Maybe a filter or something?
We can (and going to do now) add the prices without VAT and many decimals, so the calculation results in a price that is rounded (including VAT) but honestly it is really inconvenient and also doesn’t make much more sense since everywhere ese we can just enter prices with tax included.
Thanks in advance for your answer!
Honza
suddenly in my admin page AISEO doesn’t work anymore.
i tried disabling every single plugin, but nothing changed. In the console I get these 2 errors:
What can it be?
]]>A highly recommended, amazing product that punches way above its weight!
]]>As soon as we got the Instagram feed set up, the administrative interface bot the Social Feed stopped showing up. The feed’s still operating, the menu item and submenu items show up in the WordPress Admin interface, but selecting any of them results in a pane on the right that just has the top-level administrative messages, nothing specific to SFG, no matter which menu item is selected. Tried deactivating the plugin and reactivating, but no luck.
Anyone know of something that could cause a conflict?
]]>I just installed the plugin on a test site. After installing the plugin I clicked the “Activate” button.
This lead me to a File not found.
error.
I looked into your source code.
public function impact_activate( $plugin ) {
$arr = explode( '/', $plugin );
if ( count( $arr ) >= 1 && strpos( $arr[ count( $arr ) - 1 ], 'impact' ) !== false ) {
$store_url = home_url();
$path = '/wp-admin/admin.php?page=impact-settings';
$url = $store_url . $path;
wp_safe_redirect( $url );
exit;
{...}
}
}
It looks like you’re using home_url() which is generally used on the front-end of the website.
If WordPress is installed in a subdirectory such as example.com/wp/
then when you activate the plugin it will load example.com/wp-admin/admin.php?page=impact-settings
which doesn’t exist.
I recommend using admin_url() instead.
]]>Deprecated Using ${var} in strings is deprecated, use {$var} instead
wp-content/plugins/wp-rss-aggregator/includes/admin-options.php:279
1 Plugin: wp-rss-aggregator
wp-content/plugins/wp-rss-aggregator/includes/admin-options.php:288
wp-content/plugins/wp-rss-aggregator/includes/admin-options.php:293
Deprecated Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
wp-content/plugins/wp-rss-aggregator/vendor/twig/twig/src/Node/Node.php:213
Deprecated Return type of Twig\Node\Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
wp-content/plugins/wp-rss-aggregator/vendor/twig/twig/src/Node/Node.php:221
Deprecated Constant FILTER_SANITIZE_STRING is deprecated
wp-content/plugins/wp-rss-aggregator/src/Handlers/FeedTemplates/PreviewTemplateRedirectHandler.php:67
wp-content/plugins/wp-rss-aggregator/includes/admin.php:62
wp-content/plugins/wp-rss-aggregator/includes/admin.php:64
Deprecated strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
wp-content/plugins/wp-rss-aggregator/includes/admin-display.php:715