the_excerpt WordPress Filter Hook

The the_excerpt WordPress hook is one of the most commonly used hooks in WordPress. It allows you to specify what content should be displayed in the excerpt for a post or page. This hook is generally used in conjunction with the_content hook to display a post or page's excerpt on the front end of a WordPress site.

apply_filters( 'the_excerpt', string $post_excerpt ) #

Filters the displayed post excerpt.


Description

Top ↑

See also


Top ↑

Parameters

$post_excerpt

(string)The post excerpt.


Top ↑

Source

File: wp-includes/post-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
0.71Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.