wphooks.info - get_the_excerpt

get_the_excerpt

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/post-template.php:
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
	/**
	 * Filters the retrieved post excerpt.
	 *
	 * @since 1.2.0
	 * @since 4.5.0 Introduced the `$post` parameter.
	 *
	 * @param string $post_excerpt The post excerpt.
	 * @param WP_Post $post Post object.
	 */
	return apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
}

/**
 * Whether the post has a custom excerpt.
 *
 * @since 2.3.0
 *
 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
 * @return bool True if the post has a custom excerpt, false otherwise.