[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/block-supports/ -> align.php (summary)

Align block support flag.

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

Defines 2 functions

  wp_register_alignment_support()
  wp_apply_alignment_support()

Functions
Functions that are not part of a class:

wp_register_alignment_support( $block_type )   X-Ref
Registers the align block attribute for block types that support it.

param: WP_Block_Type $block_type Block Type.

wp_apply_alignment_support( $block_type, $block_attributes )   X-Ref
Add CSS classes for block alignment to the incoming attributes array.
This will be applied to the block markup in the front-end.

return: array Block alignment CSS classes and inline styles.
param: WP_Block_Type $block_type       Block Type.
param: array         $block_attributes Block attributes.



Generated : Sat Nov 27 08:20:02 2021 Cross-referenced by PHPXref