themes_auto_update_enabled
Filter HookDescription
Filters whether themes auto-update is enabled.Hook Information
File Location |
wp-admin/includes/update.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1070 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$enabled
|
True if themes auto-update is enabled, false otherwise. |
Usage Examples
Basic Usage
<?php
// Hook into themes_auto_update_enabled
add_filter('themes_auto_update_enabled', 'my_custom_filter', 10, 1);
function my_custom_filter($enabled) {
// Your custom filtering logic here
return $enabled;
}
Source Code Context
wp-admin/includes/update.php:1070
- How this hook is used in WordPress core
<?php
1065 *
1066 * @since 5.5.0
1067 *
1068 * @param bool $enabled True if themes auto-update is enabled, false otherwise.
1069 */
1070 return apply_filters( 'themes_auto_update_enabled', $enabled );
1071 }
1072
1073 return false;
1074 }
1075
PHP Documentation
<?php
/**
* Filters whether themes auto-update is enabled.
*
* @since 5.5.0
*
* @param bool $enabled True if themes auto-update is enabled, false otherwise.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/update.php
Related Hooks
Related hooks will be displayed here in future updates.