Skip to content

atmosphere_document_links

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

Filters the site.standard.document links union.

Return an array with a non-empty string $type field to add the links field. Return null or an empty array to omit it.

Auto-generated Example

/**
 * Filters the site.standard.document links union.
 * 
 * Return an array with a non-empty string `$type` field to add
 * the `links` field. Return null or an empty array to omit it.
 *
 * @param array   $links 
 * @param WP_Post $post 
 * @return array The filtered value.
 */
function my_atmosphere_document_links_callback( array $links = null, WP_Post $post ) {
    // Your code here.
    return null;
}
add_filter( 'atmosphere_document_links', 'my_atmosphere_document_links_callback', 10, 2 );

Parameters

  • array|null $links Links union object, or null to omit.
  • WP_Post $post WordPress post.

Files

\apply_filters( 'atmosphere_document_links', null, $this->object )

← All Hooks

Clone this wiki locally