theme_auto_update_setting_html WordPress Filter Hook

The theme_auto_update_setting_html hook allows you to add a setting to the WordPress auto-update settings page. This hook is useful for adding a setting to control whether or not your theme should be updated automatically.

apply_filters( 'theme_auto_update_setting_html', string $html, string $stylesheet, WP_Theme $theme ) #

Filters the HTML of the auto-updates setting for each theme in the Themes list table.


Parameters

$html

(string)The HTML for theme's auto-update setting, including toggle auto-update action link and time to next update.

$stylesheet

(string)Directory name of the theme.

$theme

(WP_Theme)WP_Theme object.


Top ↑

Source

File: wp-admin/includes/class-wp-ms-themes-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.