??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/pyan.co.uk/wp-includes/block-supports/generated-classname.php
⬅ Kembali
<?php
/**
* Generated classname block support flag.
*
* @package WordPress
* @since 5.6.0
*/
/**
* Gets the generated classname from a given block name.
*
* @since 5.6.0
*
* @access private
*
* @param string $block_name Block Name.
* @return string Generated classname.
*/
function wp_get_block_default_classname( $block_name ) {
// Generated HTML classes for blocks follow the `wp-block-{name}` nomenclature.
// Blocks provided by WordPress drop the prefixes 'core/' or 'core-' (historically used in 'core-embed/').
$classname = 'wp-block-' . preg_replace(
'/^core-/',
'',
str_replace( '/', '-', $block_name )
);
/**
* Filters the default block className for server rendered blocks.
*
* @since 5.6.0
*
* @param string $class_name The current applied classname.
* @param string $block_name The block name.
*/
$classname = apply_filters( 'block_default_classname', $classname, $block_name );
return $classname;
}
/**
* Adds the generated classnames to the output.
*
* @since 5.6.0
*
* @access private
*
* @param WP_Block_Type $block_type Block Type.
* @return array Block CSS classes and inline styles.
*/
function wp_apply_generated_classname_support( $block_type ) {
$attributes = array();
$has_generated_classname_support = block_has_support( $block_type, 'className', true );
if ( $has_generated_classname_support ) {
$block_classname = wp_get_block_default_classname( $block_type->name );
if ( $block_classname ) {
$attributes['class'] = $block_classname;
}
}
return $attributes;
}
// Register the block support.
WP_Block_Supports::get_instance()->register(
'generated-classname',
array(
'apply' => 'wp_apply_generated_classname_support',
)
);
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 align.php
php
1.7 KB
2023-08-10 20:48
🐘 anchor.php
php
1.5 KB
2026-01-05 11:31
🐘 aria-label.php
php
1.7 KB
2026-02-18 11:12
🐘 auto-register.php
php
2.2 KB
2026-02-17 18:21
🐘 background.php
php
4 KB
2025-09-11 00:27
🐘 block-style-variations.php
php
9.3 KB
2026-01-30 07:10
🐘 block-visibility.php
php
5.2 KB
2026-03-11 10:20
🐘 border.php
php
6.1 KB
2026-01-05 09:52
🐘 colors.php
php
5.4 KB
2026-01-05 09:52
🐘 custom-classname.php
php
1.6 KB
2023-08-10 20:48
🐘 custom-css.php
php
9.4 KB
2026-05-19 13:06
🐘 dimensions.php
php
5.2 KB
2026-02-12 10:44
🐘 duotone.php
php
2.7 KB
2024-06-04 05:48
🐘 elements.php
php
8.2 KB
2026-01-30 03:03
📄 error_log
file
17.1 KB
2026-06-25 20:03
🐘 generated-classname.php
php
1.7 KB
2023-08-10 20:48
🐘 layout.php
php
42.3 KB
2026-02-17 04:51
🐘 position.php
php
4 KB
2026-01-05 09:52
🐘 settings.php
php
4.4 KB
2026-01-05 09:52
🐘 shadow.php
php
2 KB
2024-06-04 03:36
🐘 spacing.php
php
2.7 KB
2026-01-05 09:52
🐘 typography.php
php
27.7 KB
2026-02-13 06:52
🐘 utils.php
php
1011 B
2023-08-18 21:29