WP_Widget_Text::__construct()
Sets up a new Text widget instance.
Метод класса: WP_Widget_Text{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Widget_Text = new WP_Widget_Text(); $WP_Widget_Text->__construct();
Список изменений
С версии 2.8.0 | Введена. |
Код WP_Widget_Text::__construct() WP Widget Text:: construct WP 6.5.2
public function __construct() { $widget_ops = array( 'classname' => 'widget_text', 'description' => __( 'Arbitrary text.' ), 'customize_selective_refresh' => true, 'show_instance_in_rest' => true, ); $control_ops = array( 'width' => 400, 'height' => 350, ); parent::__construct( 'text', __( 'Text' ), $widget_ops, $control_ops ); }