Code activation

I want make a plugin. i want make conditional statement like " Y code active IF " X" WIDGET IS ACTIVATED BY USER"
How can I get status of "X" widget?

(Widget in this case means profile widget)

Sorry for my bad English

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking