themes_auto_update_enabled
Filters whether themes auto-update is enabled.
Использование
add_filter( 'themes_auto_update_enabled', 'wp_kama_themes_auto_update_enabled_filter' );
/**
* Function for `themes_auto_update_enabled` filter-hook.
*
* @param bool $enabled True if themes auto-update is enabled, false otherwise.
*
* @return bool
*/
function wp_kama_themes_auto_update_enabled_filter( $enabled ){
// filter...
return $enabled;
}
- $enabled(true|false)
- True if themes auto-update is enabled, false otherwise.
Список изменений
| С версии 5.5.0 | Введена. |
Где вызывается хук
themes_auto_update_enabled
wp-admin/includes/update.php 1068
return apply_filters( 'themes_auto_update_enabled', $enabled );