Skip to content

wpa_summary_heading

github-actions[bot] edited this page Nov 15, 2026 · 7 revisions

Filter the heading text for content summaries. Default Summary.

Auto-generated Example

add_filter(
   'wpa_summary_heading',
    function(
        string $heading,
        int $post_id
    ) {
        // Your code here.
        return $heading;
    },
    10,
    2
);

Parameters

  • string $heading Heading text.
  • int $post_id Post ID.

Returns

string

Files

apply_filters( 'wpa_summary_heading', __( 'Summary', 'wp-accessibility' ), $post_id )

← All Hooks

Clone this wiki locally