plugin_auto_update_setting_html
Filters the HTML of the auto-updates setting for each plugin in the Plugins list table.
Использование
add_filter( 'plugin_auto_update_setting_html', 'wp_kama_plugin_auto_update_setting_html_filter', 10, 3 ); /** * Function for `plugin_auto_update_setting_html` filter-hook. * * @param string $html The HTML of the plugin's auto-update column content, including toggle auto-update action links and time to next update. * @param string $plugin_file Path to the plugin file relative to the plugins directory. * @param array $plugin_data An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values. * * @return string */ function wp_kama_plugin_auto_update_setting_html_filter( $html, $plugin_file, $plugin_data ){ // filter... return $html; }
- $html(строка)
- The HTML of the plugin's auto-update column content, including toggle auto-update action links and time to next update.
- $plugin_file(строка)
- Path to the plugin file relative to the plugins directory.
- $plugin_data(массив)
- An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values.
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
plugin_auto_update_setting_html
wp-admin/includes/class-wp-plugins-list-table.php 1375
echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );