We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.
/** * 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 );
array|null
$labels
WP_Post
$post
\apply_filters( 'atmosphere_document_labels', null, $this->object )
← All Hooks