Recent

ata_get_snippets filter

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

TypeNameDescription
\WP_Post[]|int[]$snippetsArray of snippet objects or snippet IDs.
array$parse_argsArguments passed to the get_posts function.

Usage

add_filter( 'ata_get_snippets', function($snippets, $parse_args) {
    // ...
    return $snippets;
} );