WordPress.org

Ready to get started?Download WordPress

Forums

Where is the code of widgets stored? (3 posts)

  1. xenonius
    Member
    Posted 2 years ago #

    Is there a way to access the files containing widgets code?
    e.g. in the web page: http://www.focusweb.co.il/?lang=en
    Where is the code of the form in the left side sidebar stored?

    Thanks, good souls

    Xenonius

  2. s_ha_dum
    Member
    Posted 2 years ago #

    widget code can be in the theme, a plugin, or (some of them) in the WordPress core.

    In that case, looks like the HTML was pasted into a text widget.

  3. Ravi Gill
    Member
    Posted 1 year ago #

    As s_ha_dum mentioned, one place to look is in the WordPress (WP) core.

    WP uses a base class called WP_Widget for it's default widgets - see [wp-includes/widgets.php].

    Each default widget extends from this class - see [wp-includes/default-widgets.php].
    And they're all registered at the end of this file in a separate wp_widgets_init function.

    If the form you're looking at is a widget it could be coded and registered in [wp-includes/default-widgets.php].

Topic Closed

This topic has been closed to new replies.

About this Topic