WPDev.one
Core Function
View Source on Trac ↗

render_block_core_categories()

render_block_core_categories( mixed $attributes, mixed $content, mixed $block )

Renders the `core/categories` block on server.

Parameters 3 required

Name / Type Description
$attributes
array

The block attributes.

Required
$content
string

Block default content.

Required
$block
WP_Block

Block instance.

Required

Return Value

(string)
Returns the categories list/dropdown markup.

Function Information

Since Version
5.0.0
Source File
wp-includes/blocks/categories.php
Advertisement