PHP Class Jetpack_Image_Widget, jetpack

Sort Order: 20 First Introduced: 1.2
Inheritance: extends WP_Widget
Mostrar archivo Open project: automattic/jetpack

Public Methods

Method Description
__construct ( ) Register widget with WordPress.
enqueue_style ( ) Loads file for front-end widget style.
form ( array $instance ) Back-end widget form.
update ( array $new_instance, array $old_instance ) : array Sanitize widget form values as they are saved.
widget ( array $args, array $instance ) Front-end display of widget.

Method Details

__construct() public method

Register widget with WordPress.
public __construct ( )

enqueue_style() public method

Loads file for front-end widget style.
public enqueue_style ( )

form() public method

Back-end widget form.
See also: WP_Widget::form()
public form ( array $instance )
$instance array Previously saved values from database.

update() public method

Sanitize widget form values as they are saved.
See also: WP_Widget::update()
public update ( array $new_instance, array $old_instance ) : array
$new_instance array Values just sent to be saved.
$old_instance array Previously saved values from database.
return array Updated safe values to be saved.

widget() public method

Front-end display of widget.
See also: WP_Widget::widget()
public widget ( array $args, array $instance )
$args array Widget arguments.
$instance array Saved values from database.