[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> post-navigation-link.php (summary)

Server-side rendering of the `core/post-navigation-link` block.

File Size: 228 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  render_block_core_post_navigation_link()
  block_core_post_navigation_link_get_support_styles()
  register_block_core_post_navigation_link()

Functions
Functions that are not part of a class:

render_block_core_post_navigation_link( $attributes, $content )   X-Ref
Renders the `core/post-navigation-link` block on the server.

return: string Returns the next or previous post link that is adjacent to the current post.
param: array  $attributes Block attributes.
param: string $content    Block default content.

block_core_post_navigation_link_get_support_styles( $attributes )   X-Ref
Generates the border, shadow and spacing class names and inline styles for
the `core/post-navigation-link` block.

Mirrors the default border, shadow and spacing block support serialization,
which the block opts out of so the styles are only applied when a link is
rendered.

return: array {
param: array $attributes The block attributes.

register_block_core_post_navigation_link()   X-Ref
Registers the `core/post-navigation-link` block on the server.




Generated : Wed Oct 14 08:20:33 2026 Cross-referenced by PHPXref