default_excerpt WordPress Filter Hook

The default_excerpt Wordpress hook is a hook that is called when an excerpt is generated for a post. It allows for customization of the excerpt before it is displayed.

apply_filters( 'default_excerpt', string $post_excerpt, WP_Post $post ) #

Filters the default post excerpt initially used in the “Write Post” form.


Parameters

$post_excerpt

(string)Default post excerpt.

$post

(WP_Post)Post object.


Top ↑

Source

File: wp-admin/includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

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.

Show More