<?php
/**
* Block Code
*
* @package Bootscore
* @version 6.2.2
*/
// Exit if accessed directly
defined('ABSPATH') || exit;
/**
* Code
*/
if (!function_exists('bootscore_block_code_classes')) {
/**
* Adds Bootstrap classes to block code.
*
* @param string $block_content The block content.
* @param array $block The full block, including name and attributes.
* @return string The filtered block content.
*/
function bootscore_block_code_classes($block_content, $block) {
$search = array(
'wp-block-code'
);
$replace = array(
'border rounded bg-body-tertiary p-3'
);
$block_content = str_replace($search, $replace, $block_content);
return apply_filters('bootscore/block/code/content', $block_content, $block);
}
}
add_filter('render_block_core/code', 'bootscore_block_code_classes', 10, 2);| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| block-buttons.php | 2026-11-26 08:19 | 3.26 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-code.php | 2026-11-26 08:19 | 881 B | 76129f60960:kunden | -xw-x--x-- | |
| block-quote.php | 2026-11-26 08:19 | 938 B | 76129f60960:kunden | -xw-x--x-- | |
| block-table.php | 2026-11-26 08:19 | 990 B | 76129f60960:kunden | -xw-x--x-- | |
| block-widget-archives.php | 2026-11-26 08:19 | 1.43 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-widget-calendar.php | 2026-11-26 08:19 | 980 B | 76129f60960:kunden | -xw-x--x-- | |
| block-widget-categories.php | 2026-11-26 08:19 | 1.51 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-widget-latest-comments.php | 2026-11-26 08:19 | 1.82 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-widget-latest-posts.php | 2026-11-26 08:19 | 1.43 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-widget-search.php | 2026-11-26 08:19 | 1.83 KB | 76129f60960:kunden | -xw-x--x-- | |
| disable-unsupported-blocks.php | 2026-11-26 08:19 | 2.27 KB | 76129f60960:kunden | -xw-x--x-- | |
| patterns.php | 2026-11-26 08:19 | 2.23 KB | 76129f60960:kunden | -xw-x--x-- | |