Opened 16 years ago
Closed 16 years ago
#9304 closed defect (bug) (fixed)
Allow plugins to modify class value in page lists
Reported by: | wnorris | Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | UI | Keywords: | has-patch |
Focuses: | Cc: |
Description
This patch adds a new filter 'page_css_class' which allows plugins to modify the class values included for each page retrieved via wp_list_pages().
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
attaching alternate solution, which is more consistent with how this is done in other parts of WordPress... instead of changing $css_class to be an array, leave it as a string, then explode it just for the purposes of passing into the filter. Take yer pick.