restapi_theme_action_copy_dirs, $copy_dirs
restapi_theme_action_copy_dirs, $copy_dirs
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('restapi_theme_action_copy_dirs, $copy_dirs') is found 1 times:
- /class.json-api-endpoints.php line 2071
// add inc/wpcom.php and/or includes/wpcom.php. wpcom_load_theme_compat_file(); // Enable including additional directories or files in actions to be copied. $copy_dirs = apply_filters( 'restapi_theme_action_copy_dirs', $copy_dirs ); // since the stuff we care about (CPTS, post formats, are usually on setup or init hooks, we want to load those). $this->copy_hooks( 'after_setup_theme', 'restapi_theme_after_setup_theme', $copy_dirs ); /** * Fires functions hooked onto `after_setup_theme` by the theme for the purpose of the REST API.