Register API

[php snippet=1]