Change WordPress user roles and capabilities Forums How to or FAQ Restrict special Woocommerce report (tabs) Reply To: Restrict special Woocommerce report (tabs)

#5561
Vladimir
Keymaster

Hi Dieter,

URE does not include functionality for editing the list of WooCommerce reports available to user.
WooCommerce itself offers to use special filter for this purpose:


$reports = apply_filters( 'woocommerce_admin_reports', $reports );

Thus it’s possible to hook a function to this filter and remove from the list prohibited reports.

You can not restrict special URL(s) with User Role Editor. Custom code is needed also.