About the code that makes conditional logic work
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.