Skip to content

activitypub_allowed_html

github-actions[bot] edited this page Dec 16, 2025 · 1 revision

Filter the final allowed HTML for ActivityPub content.

Auto-generated Example

/**
 * Filter the final allowed HTML for ActivityPub content.
 *
 * @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', $allowed_html )

← All Hooks

Users

Developers

Clone this wiki locally