[wp-trac] [WordPress Trac] #30030: Ability to add container class for paginate_links()
WordPress Trac
noreply at wordpress.org
Sat Oct 18 07:27:43 UTC 2014
#30030: Ability to add container class for paginate_links()
--------------------------+-----------------------------
Reporter: prionkor | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.0
Severity: normal | Keywords:
Focuses: ui, template |
--------------------------+-----------------------------
When type is set to list. The class of the `<ul>` is currently hardcoded.
Could it be send via the argument?
A new key `container_class` can be introduced
{{{
$args = array(
'type' => 'list',
'container_class' => 'my-pagination-class'
);
$pagination = paginate_links($args);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30030>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list