In this article

action

restapi_theme_init

Fires functions hooked onto `init` by the theme for the purpose of the REST API. The REST API does not load the theme when processing requests. To enable theme-based functionality, the API will load the ‘/functions.php’, ‘/inc/jetpack.compat.php’, ‘/inc/jetpack.php’, ‘/includes/jetpack.compat.php files of the theme (parent and child) and copy functions hooked onto ‘init’ within those files.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.