Mej de Castro
Forum Replies Created
-
Hi @tambaqui,
Thanks for the update. Our development team has resolved the issue and will be releasing an update shortly.
We appreciate your patience!
Kind Regards,
Mej, Widget Options TeamThanks for reaching out to us. We are currently verifying this vulnerability, and you can rest assured that we will address it as soon as possible.
Thanks for your patience.
Kind Regards,
Mej, Widget Options TeamThanks for your update, @jamminjames!
Hi @matthijscremers,
Sorry to hear that you ran into these issues while moving your logic code to the new snippet system.
This error occurs because the functions you were using are not included in the list of allowed WordPress/PHP functions. To enable these functions again, please add the following filter to your functions.php file:
function add_extra_hooks( $allowed_functions ) {
// Add your custom functions here
$allowed_functions[] = 'is_product_category';
$allowed_functions[] = 'term_is_ancestor_of';
$allowed_functions[] = 'get_queried_object_id';
return $allowed_functions;
}
add_filter( 'widgetopts_allowed_php_functions', 'add_extra_hooks' );Please make sure to add this filter to your functions.php file before migrating or adding the code again in the Widget Options Snippets page.
I’ve also included a screenshot below for your reference, showing that the code you provided is no longer producing any errors.

We reduced the list of allowed WordPress and PHP functions to help prevent potential vulnerabilities, which is why some functions now need to be manually added through a filter.
Thanks and let us know how it goes on your end.
Kind Regards,
Mej, Widget Options TeamThanks for your update @schweg!
We are glad that everything works again on your end.
Kind Regards,
Mej, Widget Options TeamThanks for your input @kantti,
We are still working into this. Thanks for your patience.
Hey @krolyn,
Thanks for reaching out to us. We’ve received a similar report regarding this issue, and our team is currently working on it. We’ll be releasing a new version soon to address the problem.
We appreciate your patience.
Kind Regards,
Mej, Widget Options TeamHey @jamminjames.
You can get to the Migration Page by navigating to Settings >> Widget Options >> Display Logic >> Migrate button

Thanks and let us know if the issue has been resolved on your end.
Hey @charlesrodmell,
Thanks for the update. If you’re not using Display Logic on your website, no further action is required — you’re all set.
Thanks!
Kind Regards,
Mej, Widget Options TeamThanks for your update @miroruse!
Hi @hillyfov,
Thanks for reaching out to us.
We’ve relayed this to our development team to investigate and look for a possible solution. We appreciate your patience while we work on this.
Kind regards,
Mej, Widget Options Team.Hi @gnorf,
We’ve released a new version that fixes the migration notice issue. This update adds a close button and includes a check that automatically hides the notice when no display logic is detected. Let us know if everything works properly on your end!
Kind Regards,
Mej, Widget Options TeamHi @jamminjames,
We’ve released a new version. Could you please try updating your Widget Options plugin to the latest version and let us know if the issue has been resolved?
Please let us know. We look forward to your response.
Kind Regards,
Mej, Widget Options TeamHi @charlesrodmell,
We’ve released a new version of Widget Options. Could you please try updating to the latest version and let us know if the issue has been resolved regarding “Sorry, you are not allowed to access this page.”
We look forward to your reponse.
Kind Regards,
Mej, Widget Options Team