plugin-icon

Widget Instance

Par Global·
Display an active widget added to a sidebar within the editor or by using a shortcode, function or action.
Évaluations
3.4
Version
0.9.4
Installations actives
500
Mis à jour récemment
Jul 11, 2018
Widget Instance

Widgets are normally displayed as part of a sidebar using the dynamic_sidebar() function. There is the_widget function for static widgets, but there is no equivalent for specific widgets configured in the Appearance > Widgets area.

The Widget Instance plugin allows WordPress users of all abilities to display these widgets outside of the sidebars they have been assigned to.

Features

  1. A wysiwyg editor button for selecting available widgets,
  2. A shortcode [widget_instance id= »[widget_id] »],
  3. A theme action do_action(‘widget_instance’, [widget_id]) and finally
  4. Utility functions for developers get_widget_instance and widget_instance

Usage

  • [widget_instance id= »[widget_id] »]
  • do_action(‘widget_instance’, ‘[widget_id]’);
  • the_widget_instance(‘[widget_id]’);
  • get_the_widget_instance(‘[widget_id]’);
Gratuitsur les plans payants
En procédant à l’installation, vous acceptez les Conditions d’utilisation de WordPress.com ainsi que les Conditions de l’extension tierce.
Testé jusqu’à version
WordPress 4.9.29
Cette extension est disponible en téléchargement pour votre site .