• Resolved taka1

    (@taka1)


    We have updated to version 4.2.2 and migrated to the new “Widget Options Snippet” system.

    However, it didn’t work when I commented out the code snippet below that allows the function that you previously taught me.

    function add_extra_hooks( $allowed_functions ) {
    $allowed_functions[] = 'in_category';
    return $allowed_functions;
    }
    add_filter( 'widgetopts_allowed_php_functions', 'add_extra_hooks' );

    I understand that this vulnerability issue has been resolved in the latest version, but is it correct that the above code is still required?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mej de Castro

    (@mej)

    H i@taka1,

    Thanks for updating to the latest version of the Widget Options plugin.

    Since the in_category function is not included in the list of allowed functions
    (https://widget-options.com/docs/list-of-allowed-wordpress-functions/), the filter you added in your functions.php file is required. Without it, the code won’t be allowed or saved in the Widget Options Snippets page, and it will result in errors.

    We recommend keeping this filter active to ensure the in_category function continues to work correctly with your widgets.

    Thanks and please let us know if you have any other quesitons.

    Kind Regards,
    Mej, Widget Options Team

    Thread Starter taka1

    (@taka1)

    Thank you for your confirmation.

    It would be helpful if you could enable this feature within the plugin in the future.

    Thank you for providing such a wonderful plugin.

    Plugin Author Mej de Castro

    (@mej)

    Hi @taka1,

    Thanks for your suggestion! We’ll forward this to our dev team as a feature request.

    If there’s anything else you need, please feel free to let us know.

    Kind Regards,
    Mej, Widget Options Team

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.