Archived topic
Hook in functions.php to give access to plugin statify doesn't work
1 reply · Started by Dagmar on August 24, 2021
Hi,
I used this hook in the functions.php (childtheme) to give access to editors tp the plugin Statify:
add_filter(
‘statify__user_can_see_stats’,
current_user_can(‘edit_others_pages’ )
);
I also use puplicpress permissions-Plugin. Maybe it has something to do with it?
It doesn’t work. Cache is cleared. What can be the reason?
Regards
Dagmar
Hi there,
i am not sure what that does lol - so i googled the filter and the first topic i found was this:
https://wordpress.org/support/topic/display-statify-dashboard-for-editors/
See the plugin supports reply - sounds like they were adding a better method in 1.8.
Might be worth checking with the plugin author to see how it should be done today