Skip to content

atmosphere_publication_labels

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

Filters the site.standard.publication 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.publication 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 
 * @return array The filtered value.
 */
function my_atmosphere_publication_labels_callback( array $labels = null ) {
    // Your code here.
    return null;
}
add_filter( 'atmosphere_publication_labels', 'my_atmosphere_publication_labels_callback' );

Parameters

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

Files

\apply_filters( 'atmosphere_publication_labels', null )

← All Hooks

Clone this wiki locally