WP_Widget_Archives::__construct()
Sets up a new Archives widget instance.
Метод класса: WP_Widget_Archives{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WP_Widget_Archives = new WP_Widget_Archives(); $WP_Widget_Archives->__construct();
Список изменений
С версии 2.8.0 | Введена. |
Код WP_Widget_Archives::__construct() WP Widget Archives:: construct WP 6.2.2
public function __construct() { $widget_ops = array( 'classname' => 'widget_archive', 'description' => __( 'A monthly archive of your site’s Posts.' ), 'customize_selective_refresh' => true, 'show_instance_in_rest' => true, ); parent::__construct( 'archives', __( 'Archives' ), $widget_ops ); }