[wp-trac] [WordPress Trac] #34058: Proposal: wp_get_archives_object() function

WordPress Trac noreply at wordpress.org
Tue May 4 15:35:35 UTC 2021


#34058: Proposal: wp_get_archives_object() function
-------------------------------------------------+-------------------------
 Reporter:  davetgreen                           |       Owner:  (none)
     Type:  feature request                      |      Status:  new
 Priority:  normal                               |   Milestone:
Component:  General                              |     Version:  4.3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  template
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by donmhico):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests needs-
     testing


Comment:

 Hello @davetgreen,

 This might be 6 years old late but thanks for the new feature request!

 I've attached a PR that introduces a new method
 `wp_get_archives_result_object()` which returns an array of archive links
 data. This should should suffice the request.

 Others are highly encouraged/needed to check and test.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/34058#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list