-
Notifications
You must be signed in to change notification settings - Fork 85
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.
/**
* 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' );-
array$allowed_htmlThe allowed HTML structure for wp_kses.
\apply_filters( 'activitypub_allowed_html', self::get_allowed_html() )Follow @activitypub.blog@activitypub.blog for updates and news.