WPGlobus
  • Package
  • Class

Packages

  • WPGlobus
    • ACF
    • Admin
      • Customizer
      • HelpDesk
      • Options
        • Field
    • All-in-One-SEO
    • Compat
    • MailChimp
    • RevSlider
    • The-Events-Calendar
    • Yoast

Classes

  • WPGlobus
  • WPGlobus_Config
  • WPGlobus_Core
  • WPGlobus_Filters
  • WPGlobus_Plugin
  • WPGlobus_Utils
  • WPGlobus_WP
  • WPGlobusWidget

Class WPGlobusWidget

Class WPGlobusWidget

WP_Widget
Extended by WPGlobusWidget
Package: WPGlobus
Located at includes/class-wpglobus-widget.php

Methods summary

public
# __construct( )

Constructor

Constructor

public
# widget( array $args, array $instance )

Echo the widget content

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
WPGlobus API documentation generated by ApiGen