[ Index ]

WordPress 5.4.1

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

title

Body

[close]

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

Server-side rendering of the `core/social-link` blocks.

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

Defines 5 functions

  render_block_core_social_link()
  register_block_core_social_link()
  block_core_social_link_get_icon()
  block_core_social_link_get_name()
  block_core_social_link_services()

Functions
Functions that are not part of a class:

render_block_core_social_link( $attributes )   X-Ref
Renders the `core/social-link` block on server.

param: array $attributes The block attributes.
return: string Rendered HTML of the referenced block.

register_block_core_social_link()   X-Ref
Registers the `core/social-link` blocks.


block_core_social_link_get_icon( $service )   X-Ref
Returns the SVG for social link.

param: string $service The service icon.
return: string SVG Element for service icon.

block_core_social_link_get_name( $service )   X-Ref
Returns the brand name for social link.

param: string $service The service icon.
return: string Brand label.

block_core_social_link_services( $service = '', $field = '' )   X-Ref
Returns the SVG for social link.

param: string $service The service slug to extract data from.
param: string $field The field ('name', 'icon', etc) to extract for a service.
return: array|string



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