Skip to content

atmosphere_document_content

github-actions[bot] edited this page Jul 2, 2026 · 6 revisions

Filters the parsed content object before adding to the document record.

Auto-generated Example

/**
 * Filters the parsed content object before adding to the document record.
 *
 * @param array                     $content 
 * @param WP_Post                   $post 
 * @param Atmosphere\Content_Parser $parser 
 * @return array The filtered value.
 */
function my_atmosphere_document_content_callback( array $content, WP_Post $post, Atmosphere\Content_Parser $parser ) {
    // Your code here.
    return $content;
}
add_filter( 'atmosphere_document_content', 'my_atmosphere_document_content_callback', 10, 3 );

Parameters

  • array $content The parsed content object.
  • WP_Post $post The WordPress post.
  • Atmosphere\Content_Parser $parser The parser that produced the content.

Files

\apply_filters( 'atmosphere_document_content', $content, $this->object, $parser )

← All Hooks

Clone this wiki locally