wp-includes/block-supports/generated-classname.php


Lines:

1 to 21 of 21
<?php

/**
 * Generated classname block support flag.
 *
 * @package WordPress
 * @since 5.6.0
 */

/* function wp_get_block_default_classname() – Get the generated classname from a given block name. */

/* function wp_apply_generated_classname_support() – Add the generated classnames to the output. */

// Register the block support.
WP_Block_Supports::get_instance()->register(
  'generated-classname',
  array(
    'apply' => 'wp_apply_generated_classname_support',
  )
);
 

 View on GitHub View on Trac

Called by

    Invoked by

      Call hooks

      API Letters: ,,,,