PHP Class Jetpack_Twitter_Timeline_Widget, jetpack

Inheritance: extends WP_Widget
Datei anzeigen Open project: automattic/jetpack

Public Methods

Method Description
__construct ( ) Register widget with WordPress.
admin_scripts ( $hook ) Enqueue script to improve admin UI
enqueue_scripts ( ) Enqueue scripts.
form ( array $instance ) Back-end widget form.
get_docs_link ( $hash = '' ) Returns a link to the documentation for a feature of this widget on Jetpack or WordPress.com.
library ( ) Enqueue Twitter's widget library.
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 ( )

admin_scripts() public method

Enqueue script to improve admin UI
public admin_scripts ( $hook )

enqueue_scripts() public method

Enqueue scripts.
public enqueue_scripts ( )

form() public method

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

library() public method

Enqueue Twitter's widget library.
Deprecation:
public library ( )

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.