• hi
    i wanna know how make read-only access to Woocommerce Settings for specific user?

    i only found this code:

    add_action( 'admin_menu', 'wooninja_remove_items', 99, 0 );
    function wooninja_remove_items() {
    $remove = array( 'wc-settings');
    foreach ( $remove as $slug ) {
    if ( ! current_user_can( 'update_core' ) ) {
    remove_submenu_page( 'woocommerce', $slug );
    }
    }
    }

    thanks

The topic ‘make read-only access to Woocommerce Settings’ is closed to new replies.