ata_get_snippets
Array of the latest snippets, or snippets matching the given criteria.
Type: filter
Since: 2.0.0
Source: includes/snippets/class-functions.php line 95
Parameters
| Type | Name | Description |
|---|---|---|
\WP_Post[]|int[] | $snippets | Array of snippet objects or snippet IDs. |
array | $parse_args | Arguments passed to the get_posts function. |
Usage
add_filter( 'ata_get_snippets', function($snippets, $parse_args) {
// ...
return $snippets;
} );