How to pass data from page to widget functions?

I need help,need to pass data from page,to widget function,I need to pass author id to widget,any idea?
Tnx

Related posts

Leave a Reply

1 comment

  1. It should be possible to read the global $post variable in your widget function. This will contain all information about the post (or page) displayed on the current page.