WP_Widget_Block::form()
Outputs the Block widget settings form.
Спосіб класу: WP_Widget_Block{}
Хуків немає.
Повертає
null
. Нічого.
Використання
$WP_Widget_Block = новий WP_Widget_Block ();
$ WP_Widget_Block -> form ( $ instance );
- $instance (масив) (обов’язковий)
- Current instance.
нотатки
список змін
З версії 5.8.0 | Введено. |
Код WP_Widget_Block::form()WP Widget Block::form WP 6.1.1
<?php
public function form ( $instance ) {
$instance = wp_parse_args (( array ) $instance , $this ->default_instance);
?> < p > < label for = " <?php echo $this -> get_field_id ( 'content' ); ?> " > <?php /* translators: HTML code of the block, немає option that blocks HTML. */ _e ( 'Block HTML:' );
?> </ label > < textarea id = " <?php echo $this -> get_field_id ( 'content' ); ?> " name = " <?php echo $this -> get_field_name ( 'content' ); ?> " rows = "6" cols = "50" class = "widefat code" > <?php echo esc_textarea ( $instance [ 'content' ]]);
?> </ textarea >
</ p >
<?php
}200201202203204205206207208209210211212213214