[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/wp-includes/blocks/ -> categories.php (summary)

Server-side rendering of the `core/categories` block.

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

Defines 4 functions

  render_block_core_categories()
  build_dropdown_script_block_core_categories()
  onCatChange()
  register_block_core_categories()

Functions
Functions that are not part of a class:

render_block_core_categories( $attributes )   X-Ref
Renders the `core/categories` block on server.

param: array $attributes The block attributes.
return: string Returns the categories list/dropdown markup.

build_dropdown_script_block_core_categories( $dropdown_id )   X-Ref
Generates the inline script for a categories dropdown field.

param: string $dropdown_id ID of the dropdown field.
return: string Returns the dropdown onChange redirection script.

onCatChange()   X-Ref
No description

register_block_core_categories()   X-Ref
Registers the `core/categories` block on server.




Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1