plugins_auto_update_enabled
Filter HookDescription
Filters whether plugins auto-update is enabled.Hook Information
File Location |
wp-admin/includes/update.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1061 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$enabled
|
True if plugins auto-update is enabled, false otherwise. |
Usage Examples
Basic Usage
<?php
// Hook into plugins_auto_update_enabled
add_filter('plugins_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:1061
- How this hook is used in WordPress core
<?php
1056 *
1057 * @since 5.5.0
1058 *
1059 * @param bool $enabled True if plugins auto-update is enabled, false otherwise.
1060 */
1061 return apply_filters( 'plugins_auto_update_enabled', $enabled );
1062 case 'theme':
1063 /**
1064 * Filters whether themes auto-update is enabled.
1065 *
1066 * @since 5.5.0
PHP Documentation
<?php
/**
* Filters whether plugins auto-update is enabled.
*
* @since 5.5.0
*
* @param bool $enabled True if plugins 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.