X7ROOT File Manager
Current Path:
/home/iptvzxij/public_html/wp-includes/block-supports
home
/
iptvzxij
/
public_html
/
wp-includes
/
block-supports
/
📁
..
📄
align.php
(1.67 KB)
📄
aria-label.php
(1.57 KB)
📄
background.php
(4.05 KB)
📄
block-style-variations.php
(9.2 KB)
📄
block-visibility.php
(854 B)
📄
border.php
(6.27 KB)
📄
colors.php
(5.81 KB)
📄
custom-classname.php
(1.64 KB)
📄
dimensions.php
(5.28 KB)
📄
duotone.php
(2.67 KB)
📄
elements.php
(8.46 KB)
📄
generated-classname.php
(1.7 KB)
📄
layout.php
(39 KB)
📄
position.php
(4.24 KB)
📄
settings.php
(4.52 KB)
📄
shadow.php
(2.04 KB)
📄
spacing.php
(2.81 KB)
📄
typography.php
(29.08 KB)
📄
utils.php
(1011 B)
Editing: block-visibility.php
<?php /** * Block visibility block support flag. * * @package WordPress * @since 6.9.0 */ /** * Render nothing if the block is hidden. * * @since 6.9.0 * @access private * * @param string $block_content Rendered block content. * @param array $block Block object. * @return string Filtered block content. */ function wp_render_block_visibility_support( $block_content, $block ) { $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] ); if ( ! $block_type || ! block_has_support( $block_type, 'visibility', true ) ) { return $block_content; } if ( isset( $block['attrs']['metadata']['blockVisibility'] ) && false === $block['attrs']['metadata']['blockVisibility'] ) { return ''; } return $block_content; } add_filter( 'render_block', 'wp_render_block_visibility_support', 10, 2 );
Upload File
Create Folder