Skip to content

atmosphere_document_labels

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

Filters the site.standard.document self-labels object.

Return a com.atproto.label.defs#selfLabels object to add content-warning labels. Return null or an empty array to omit it.

Auto-generated Example

/**
 * Filters the site.standard.document self-labels object.
 * 
 * Return a com.atproto.label.defs#selfLabels object to add
 * content-warning labels. Return null or an empty array to omit it.
 *
 * @param array   $labels 
 * @param WP_Post $post 
 * @return array The filtered value.
 */
function my_atmosphere_document_labels_callback( array $labels = null, WP_Post $post ) {
    // Your code here.
    return null;
}
add_filter( 'atmosphere_document_labels', 'my_atmosphere_document_labels_callback', 10, 2 );

Parameters

  • array|null $labels Self-labels object, or null to omit.
  • WP_Post $post WordPress post.

Files

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

← All Hooks

Clone this wiki locally