Skip to content

atmosphere_transform_document

github-actions[bot] edited this page Jun 29, 2026 · 6 revisions

Filters the site.standard.document record before publishing.

Filters that return a non-array fall back to the pre-filter record.

Auto-generated Example

/**
 * Filters the site.standard.document record before publishing.
 * 
 * Filters that return a non-array fall back to the pre-filter
 * record.
 *
 * @param array   $record 
 * @param WP_Post $post 
 * @return array The filtered value.
 */
function my_atmosphere_transform_document_callback( array $record, WP_Post $post ) {
    // Your code here.
    return $record;
}
add_filter( 'atmosphere_transform_document', 'my_atmosphere_transform_document_callback', 10, 2 );

Parameters

  • array $record Document record.
  • WP_Post $post WordPress post.

Files

\apply_filters( 'atmosphere_transform_document', $record, $this->object )

← All Hooks

Clone this wiki locally