Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#30030 closed enhancement (duplicate)

Ability to add container class for paginate_links()

Reported by: prionkor Owned by:
Priority: normal Milestone:
Component: General Version: 4.0
Severity: normal Keywords:
Cc: Focuses: ui, template

Description

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);

Change History (1)

#1 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Duplicate of #28433.

Note: See TracTickets for help on using tickets.