• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / _inc/lib/widgets.php


Lines:

1 to 59 of 59
<?php

/* class Jetpack_Widgets */
/* function Jetpack_Widgets::get_sidebars_widgets() – Returns the `sidebars_widgets` option with the `array_version` element removed. */
/* function Jetpack_Widgets::format_widget() – Format widget data for output and for use by other widget functions. */
/* function Jetpack_Widgets::get_widget_id_base() – Return a widget’s id_base from its id. */
/* function Jetpack_Widgets::get_widget_option_name() – Determine a widget’s option name (the WP option where the widget’s settings
are stored – generally `widget_` + the widget’s id_base). */
/* function Jetpack_Widgets::get_widget_instance_key() – Determine a widget instance key from its ID. (eg: ‘text-3’ becomes ‘3’). */
/* function Jetpack_Widgets::get_widget_by_id() – Return a widget by ID (formatted for output) or null if nothing is found. */
/* function Jetpack_Widgets::get_all_widgets() – Return an array of all widgets (active and inactive) formatted for output. */
/* function Jetpack_Widgets::get_active_widgets() – Return an array of all active widgets formatted for output. */
/* function Jetpack_Widgets::get_all_widget_ids() – Return an array of all widget IDs (active and inactive) */
/* function Jetpack_Widgets::get_widgets_with_id_base() – Return an array of widgets with a specific id_base (eg: `text`). */
/* function Jetpack_Widgets::get_widgets_in_sidebar() – Return the array of widget IDs in a sidebar or null if that sidebar does
not exist. Will return an empty array for an existing empty sidebar. */
/* function Jetpack_Widgets::get_all_sidebars() – Return an associative array of all registered sidebars for this theme,
active and inactive, including the hidden disabled widgets sidebar (keyed
by `wp_inactive_widgets`). Each sidebar is keyed by the ID of the sidebar
and its value is an array of widget IDs for that sidebar. */
/* function Jetpack_Widgets::get_active_sidebars() – Return an associative array of all active sidebars for this theme, Each
sidebar is keyed by the ID of the sidebar and its value is an array of
widget IDs for that sidebar. */
/* function Jetpack_Widgets::add_widget_to_sidebar() – Activates a widget in a sidebar. Does not validate that the sidebar exists,
so please do that first. Also does not save the widget’s settings. Please
do that with `set_widget_settings`. */
/* function Jetpack_Widgets::remove_widget_from_sidebar() – Removes a widget from a sidebar. Does not validate that the sidebar exists
or remove any settings from the widget, so please do that separately. */
/* function Jetpack_Widgets::move_widget_to_sidebar() – Moves a widget to a sidebar. Does not validate that the sidebar exists,
so please do that first. Also does not save the widget’s settings. Please
do that with `set_widget_settings`. The first argument should be a
widget as returned by `format_widget` including `id`, `sidebar`, and
`position`. */
/* function Jetpack_Widgets::get_last_position_in_sidebar() – Return an integer containing the largest position number in a sidebar or
null if there are no widgets in that sidebar. */
/* function Jetpack_Widgets::set_widget_settings() – Saves settings for a widget. Does not add that widget to a sidebar. Please
do that with `move_widget_to_sidebar` first. Will merge the settings of
any existing widget with the same `$widget_id`. */
/* function Jetpack_Widgets::sanitize_widget_settings() – Sanitize an associative array for saving. */
/* function Jetpack_Widgets::remove_widget_settings() – Deletes settings for a widget. Does not remove that widget to a sidebar. Please
do that with `remove_widget_from_sidebar` first. */
/* function Jetpack_Widgets::update_widget() – Update a widget’s settings, sidebar, and position. Returns the (updated)
formatted widget if successful or a WP_Error if it fails. */
/* function Jetpack_Widgets::delete_widget() – Deletes a widget entirely including all its settings. Returns a WP_Error if
the widget could not be found. Otherwise returns an empty array. */
/* function Jetpack_Widgets::decode_settings() – Return an array of settings. The input can be either an object, a JSON
string, or an array. */
/* function Jetpack_Widgets::activate_widget() – Activate a new widget. */
/* function Jetpack_Widgets::activate_widgets() – Activate an array of new widgets. Like calling `activate_widget` multiple times. */
/* function Jetpack_Widgets::get_last_widget_instance_key_with_id_base() – Return the last instance key (integer) of an existing widget matching
`$id_base`. So if you pass in `text`, and there is a widget with the id
`text-2`, this function will return `2`. */
/* function Jetpack_Widgets::sort_widgets() – Method used to sort widgets */
/* function Jetpack_Widgets::get_registered_widget_object() – Retrieve a given widget object instance by ID base (eg. ‘text’ or ‘archives’). */
/* function Jetpack_Widgets::validate_id_base() – Validate a given widget ID base (eg. ‘text’ or ‘archives’). */
/* function Jetpack_Widgets::insert_widget_in_sidebar() – Insert a new widget in a given sidebar. */
/* function Jetpack_Widgets::update_widget_in_sidebar() – Update the content of an existing widget in a given sidebar. */
/* function Jetpack_Widgets::get_first_sidebar() – Retrieve the first active sidebar. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: _inc/lib/widgets.php
      Plugin ref: Jetpack
      Version: 9.2
      Deprecated?: No
      API Letters: _,I,L,P,W

      Related

      Published: 27 November 2019 | Last updated: 10 December 2020

      Primary Sidebar

      Information

      File name: _inc/lib/widgets.php
      Plugin ref: Jetpack
      Version: 9.2
      Deprecated?: No
      API Letters: _,I,L,P,W

      _inc/lib

      Footer

      Jetpack a2z
      Jetpack a2z
      Jetpack a2z
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  jetpack.wp-a2z.org
      © Copyright Jetpack a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites