| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Server-side rendering of the `core/post-excerpt` block.
| File Size: | 117 lines (4 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| render_block_core_post_excerpt( $attributes, $content, $block ) X-Ref |
| Renders the `core/post-excerpt` block on the server. param: array $attributes Block attributes. param: string $content Block default content. param: WP_Block $block Block instance. return: string Returns the filtered post excerpt for the current post wrapped inside "p" tags. |
| register_block_core_post_excerpt() X-Ref |
| Registers the `core/post-excerpt` block on the server. |
| block_core_post_excerpt_excerpt_length() X-Ref |
| Callback for the excerpt_length filter to override the excerpt length. If themes or plugins filter the excerpt_length, we need to override the filter in the editor, otherwise the excerpt length block setting has no effect. Returns 101 (one more than the max block setting of 100) to ensure wp_trim_words can detect when trimming is needed and add the ellipsis. return: int The excerpt length. |
| Generated : Sun Jun 14 08:20:09 2026 | Cross-referenced by PHPXref |