hi
does this plugin modify menus inside /wp-admin/ ?
please, edit main file of my plugin.
find
function woe_check_running_options() {
add below it
return true;
thanks, Alex
Thread Starter
filster
(@rocketmarket)
Hi Alex,
thank you for the reply, but it seems not working:
I put it like this line 31 & line 43: (one or the other or both=not working)
if( ! function_exists("woe_check_running_options") ) {
function woe_check_running_options() {
<strong>return true;</strong>
$is_backend = is_admin();
$is_cron = defined( 'DOING_CRON' );
$is_frontend_checkout = isset( $_REQUEST['wc-ajax'] ) && $_REQUEST['wc-ajax'] === 'checkout'
|| isset( $_POST['woocommerce_checkout_place_order'] )
|| preg_match( '/\bwc\-api\b/', filter_input( INPUT_SERVER, 'REQUEST_URI' ) );
return $is_backend || $is_cron || $is_frontend_checkout;
}
}
if ( ! woe_check_running_options() ) {
<strong>return true;
“does this plugin modify menus inside /wp-admin/ ?”
Not sure to understand the question, but I can say that the plugin “client dash” doesn’t modify capabilities, only the “skin” dashboard
Thread Starter
filster
(@rocketmarket)
update:
I restored my database and “client dash” before their massive update, and it works!
so the problem seems coming from their plugin!
Thank you, I’ll use this version for now and will ask their support further
user must have capability “view_woocommerce_reports”
try something like this to add this capability
add_action( '_admin_menu', function() {
$user = get_role( 'editor' );
if ( ! $user->has_cap( 'view_woocommerce_reports' ) ) {
$user->add_cap( 'view_woocommerce_reports' );
}
});