Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#7818 closed enhancement (fixed)

Require new filter hook for sidebars_widgets array

Reported by: gortsleigh Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.6.1
Component: General Keywords: widget filter reorder
Focuses: Cc:


We need to alter the order of widgets on a sidebar based on a user preference. There is currently no hook available to affect the ordering of widgets.

Please add a new hook for the $sidebars_widgets array, as shown in the following 2.6.2 Wordpress code

File is wp-includes/widgets.php

Index: widgets.php
--- widgets.php	(revision 658)
+++ widgets.php	(working copy)
@@ -361,6 +361,7 @@
+	$sidebars_widgets = apply_filters('sidebars_widgets', $sidebars_widgets);
 	return $sidebars_widgets;

Change History (1)

comment:1 ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9088]) sidebars_widgets fiter from gortsleigh. fixes #7818

Note: See TracTickets for help on using tickets.