Class WPGlobusWidget
-
WP_Widget
-
WPGlobusWidget
Package: WPGlobus
Located at includes/class-wpglobus-widget.php
Methods summary
public
|
|
public
|
#
widget( array $args, array $instance )
Echo the widget content
Parameters
- $args
- Display arguments including before_title, after_title, before_widget, and after_widget.
- $instance
- The settings for the particular instance of the widget
|
public
string
|
#
form( array $instance )
Echo the settings update form
Echo the settings update form
Parameters
- $instance
- Current settings
Returns
string
|
public
array
|
#
update( array $new_instance, array $old_instance )
Update a particular instance.
This function should check that $new_instance is set correctly.
The newly calculated value of $instance should be returned.
If "false" is returned, the instance won't be saved/updated.
Update a particular instance.
This function should check that $new_instance is set correctly.
The newly calculated value of $instance should be returned.
If "false" is returned, the instance won't be saved/updated.
Parameters
- $new_instance
- New settings for this instance as input by the user via form()
- $old_instance
- Old settings for this instance
Returns
array Settings to save or bool false to cancel saving
|