Skip to content

activitypub_allowed_html

github-actions[bot] edited this page Mar 18, 2026 · 3 revisions

Filters the allowed HTML for ActivityPub content.

The default allowlist is based on FEP-b2b8 (Long-form Text), extended with common WordPress content elements like figures, tables, definition lists, and horizontal rules.

Auto-generated Example

/**
 * Filters the allowed HTML for ActivityPub content.
 * 
 * The default allowlist is based on FEP-b2b8 (Long-form Text),
 * extended with common WordPress content elements like figures,
 * tables, definition lists, and horizontal rules.
 *
 * @param array $allowed_html 
 * @return array The filtered value.
 */
function my_activitypub_allowed_html_callback( array $allowed_html ) {
    // Your code here.
    return $allowed_html;
}
add_filter( 'activitypub_allowed_html', 'my_activitypub_allowed_html_callback' );

Parameters

  • array $allowed_html The allowed HTML structure for wp_kses.

Files

\apply_filters( 'activitypub_allowed_html', self::get_allowed_html() )

← All Hooks

Users

Developers

Clone this wiki locally