WordPress GSoC

Changeset 2345


Ignore:
Timestamp:
09/21/2013 09:31:12 AM (13 years ago)
Author:
rmccue
Message:

Add filters for post type and post status data

See #380

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/rmccue/trunk/lib/class-wp-json-posts.php

    r2344 r2345  
    429429                }
    430430
    431                 return $data;
     431                return apply_filters( 'json_post_type_data', $data, $type );
    432432        }
    433433
    … …  
    465465                }
    466466
    467                 return $data;
     467                return apply_filters( 'json_post_statuses', $data, $statuses );
    468468        }
    469469
Note: See TracChangeset for help on using the changeset viewer.