wp-includes/block-supports/align.php


Lines:

1 to 22 of 22
<?php

/**
 * Align block support flag.
 *
 * @package WordPress
 * @since 5.6.0
 */

/* function wp_register_alignment_support() – Registers the align block attribute for block types that support it. */

/* function wp_apply_alignment_support() – Add CSS classes for block alignment to the incoming attributes array. */

// Register the block support.
WP_Block_Supports::get_instance()->register(
  'align',
  array(
    'register_attribute' => 'wp_register_alignment_support',
    'apply'              => 'wp_apply_alignment_support',
  )
);
 

 View on GitHub View on Trac

Called by

    Invoked by

      Call hooks

      API Letters: ,,,,