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