Well you can use it anywhere, it returns $true if auto-op is enabled or $false if auto-op is disabled.