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