# essential-widgets/3.2/includes/widgets/widgets.php

Essential Widgets, version 3.2. 27 lines.

- Page: https://pluginprobe.com/plugins/essential-widgets/3.2/code/includes/widgets/widgets.php
- Raw: https://pluginprobe.com/plugins/essential-widgets/3.2/raw/includes/widgets/widgets.php
- Modified: 2026-06-16T09:03:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/essential-widgets/3.2/code/includes/widgets/widgets.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-scope variables used immediately below; file is included inside a function scope.

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

/**
 * The template for adding Custom Sidebars and Widgets
 *
 * @package Essential_Widgets
 */

// Load Archives Widget

$option = essential_widgets_get_options();
$widget_list = essential_widgets_list();

foreach( $widget_list as $key => $value ) {
	if( 1 === (int) $option[ $key ] ) {
		$widget_file = str_replace( '_', '-', $key );

		// Enqueue active widget files
		include plugin_dir_path( __FILE__ ) . 'class-' . $widget_file . '.php';
	}
}

```
