PHP Class Twitter\WordPress\Widgets\Buttons\Follow

Since: 1.0.0
Inheritance: extends WP_Widget
ファイルを表示 Open project: twitter/wordpress

Public Methods

Method Description
__construct ( ) : void Register widget with WordPress
form ( array $instance ) : void Settings update form
update ( array $new_instance, array $old_instance ) : boolean | array Update a widget instance
widget ( array $args, array $instance ) : void Front-end display of widget

Method Details

__construct() public method

Register widget with WordPress
Since: 1.0.0
public __construct ( ) : void
return void

form() public method

Settings update form
Since: 1.0.0
public form ( array $instance ) : void
$instance array Current settings
return void

update() public method

Update a widget instance
Since: 1.0.0
public update ( array $new_instance, array $old_instance ) : boolean | array
$new_instance array New settings for this instance as input by the user via form()
$old_instance array Old settings for this instance
return boolean | array settings to save or false to cancel saving

widget() public method

Front-end display of widget
Since: 1.0.0
public widget ( array $args, array $instance ) : void
$args array Display arguments including before_title, after_title, before_widget, and after_widget.
$instance array The settings for the particular instance of the widget
return void