widget_meta_poweredby хук-фильтр . WP 3.6.0
Filters the "WordPress.org" list item HTML in the Meta widget.
Использование
add_filter( 'widget_meta_poweredby', 'filter_function_name_8844', 10, 2 ); function filter_function_name_8844( $html, $instance ){ // filter... return $html; }
- $html(строка)
- Default HTML for the WordPress.org list item.
- $instance(массив)
- Array of settings for the current widget.
Список изменений
С версии 3.6.0 | Введена. |
С версии 4.9.0 | Added the $instance parameter. |
Где вызывается хук
wp-includes/widgets/class-wp-widget-meta.php 86-94
echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%1$s">%2$s</a></li>', esc_url( __( 'https://wordpress.org/' ) ), __( 'WordPress.org' ) ), $instance );