Use the use
keyword:
$title = $instance['title'];
add_action( 'wp_footer', function() use ( $title ) {
echo $title;
});
Use the use
keyword:
$title = $instance['title'];
add_action( 'wp_footer', function() use ( $title ) {
echo $title;
});