How to use Hooks for plugs?

Hey guys, may a simple question but I didnt understand the documentation about hooks not right.

We use like plugs and slots via dbus and we would like now use hook script to configure that properly in an automatic way , current we use like bash scripts where we run by our configuration routine, but we want know to have an “automated” way for that via the snap store.

like in the script can we use?

snap set thecurrentsnap plug=service slot=anothersnap:service

snap set thecurrentsnap plug=service:anothersnap:service

The plugs and slots are dbus interfaces any help would be appricated.

Greets Tony