WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #12955, comment 66


Ignore:
Timestamp:
03/26/2018 01:41:16 AM (4 years ago)
Author:
danieliser
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12955, comment 66

    v1 v2  
    77
    88https://core.trac.wordpress.org/ticket/12955#comment:52
     9
     10That said that implementation is a bit crude for my tastes as it still requires 3 lines:
     11
     12add_filter
     13get_posts
     14remove_filter
     15
     16I'm wondering if a new function get_objects/get_post_objects where it accepts an additional parameter for the object to be used, or simply a new $arg for get_posts in general to use the right return model.