Recent

ata_get_snippet_contentfilter

ata_get_snippet_content

Retrieves the snippet content given a snippet ID or object.

Type: filter
Since: 2.1.0
Source: includes/snippets/class-functions.php line 178

Parameters

Type Name Description
string $output Snippet content.
\WP_Post $snippet Snippet ID or object (input).
array $args Arguments.

Usage

add_filter( 'ata_get_snippet_content', function($output, $snippet, $args) {
    // ...
    return $output;
} );