In this article

action

restapi_theme_after_setup_theme

Fires functions hooked onto `after_setup_theme` 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 ‘after_setup_theme’ within those files.

Changelog

How to use this hook

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