WP_Upgrader_Skin::feedback( string $string, mixed $args )
Parameters
- $string
-
(string) (Required)
- $args
-
(mixed) (Optional) text replacements.
Source
File: wp-admin/includes/class-wp-upgrader-skin.php
public function feedback( $string, ...$args ) {
if ( isset( $this->upgrader->strings[ $string ] ) ) {
$string = $this->upgrader->strings[ $string ];
}
if ( strpos( $string, '%' ) !== false ) {
if ( $args ) {
$args = array_map( 'strip_tags', $args );
$args = array_map( 'esc_html', $args );
$string = vsprintf( $string, $args );
}
}
if ( empty( $string ) ) {
return;
}
show_message( $string );
} Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_upgrader_skin/feedback