Hello, we have tested your plugin on two different unrelated websites and both are showing an error within the “Latest From Our Blog” WordPress Dashboard widget.
Tested with default theme and just Elementor and your plugin active.
Screen shot: https://prnt.sc/acNAmGn9EpoM
Warning: count(): Parameter must be an array or an object that implements Countable in /public_html/wp-content/plugins/restrict-elementor-widgets/src/Admin.php on line 112
Warning: array_slice() expects parameter 1 to be array, string given in /public_html/wp-content/plugins/restrict-elementor-widgets/src/Admin.php on line 114
Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/restrict-elementor-widgets/src/Admin.php on line 118
]]>It seems you’ve published an update to v1.4 but I cannot see any changelogs for it.
Please advise.
Thank you
Hi there!
Thanks for this excellent plugin!
I have a feature request I am hoping you could implement. It would be great if there was an option to use dynamic data in the “User IDs” field, i.e. use a custom field to restrict access based on the data that is, for example, in an ACF field.
It would be even better if we could restrict by user names.
I see this plugin has not been updated in a while. I really really hope it isn’t abandoned. Thanks again.
]]>How i can fix it?
Detalhes do erro
================
Um erro do tipo E_ERROR foi causado na linha 96 do arquivo [WP PATCH]/plugins/restrict-elementor-widgets/vendor/codexpert/plugin/src/Feature.php. Mensagem de erro: Uncaught TypeError: array_unshift(): Argument #1 ($array) must be of type array, null given in [WP PATCH]/plugins/restrict-elementor-widgets/vendor/codexpert/plugin/src/Feature.php:96
Stack trace:
#0 [WP PATCH]/plugins/restrict-elementor-widgets/vendor/codexpert/plugin/src/Feature.php(96): array_unshift(NULL, Object(stdClass))
#1 [WP PATCH]/plugins/restrict-elementor-widgets/vendor/codexpert/plugin/src/Feature.php(72): Codexpert\Plugin\Feature->add_to_list('image-sizes', Object(stdClass))
#2 [WP PATCH]/wp-includes/class-wp-hook.php(307): Codexpert\Plugin\Feature->alter_api_result(Object(stdClass), 'plugin_informat...', Object(stdClass))
#3 [WP PATCH]/wp-includes/plugin.php(191): WP_Hook->apply_filters(Object(stdClass), Array)
#4 [WP PATCH]/wp-admin/includes/plugin-install.php(234): apply_filters('plugins_api_res...', Object(stdClass), 'plugin_informat...', Object(stdClass))
#5 [WP PATCH]/wp-admin/includes/ajax-actions.php(4425): plugins_api('plugin_informat...', Object(stdClass))
#6 [WP PATCH]/wp-includes/class-wp-hook.php(307): wp_ajax_install_plugin('')
#7 [WP PATCH]/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#8 [WP PATCH]/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#9 [WP PATCH]/wp-admin/admin-ajax.php(187): do_action('wp_ajax_install...')
#10 {main}
thrown
]]>
Not your problem…it was a plugin conflict.
+ + + +
Yes, I have been playing with this an hoping it would work. In fact, I thought it did, but nope.
At least it doesn’t work with the tab element. It does hide the section. When I log in as an admin, it works fine. But when I login as a subscriber, the first tab shows, but the remaining tabs show the restricted warning.
THe concept is great, but it behaves very inconsistently. If I replace the section template with simple text, the tab element fails completely. Perhaps it is a reflection of the tab element.
Pradhan
]]>I’m using Ultimate Member plugin and use custom roles that also appear in the Elementor Role Manager. But when editing content and try to restrict the content within Elementor with your plugin doesn’t work. The new role doesn’t appear in your settings.
Any idea how to solve that?
]]>The settings for the addon are being displayed above the Advanced settings in the Advanced tab on the Elementor sidebar. This is annoying because the Advanced settings are the settings you want to see first in the Advanced tab. Please fix!
]]>