WP_Theme_JSON::get_block_element_selectors( string $root_selector ): array

In this article

Generates all the element selectors for a block.

Parameters

$root_selectorstringrequired
The block’s root CSS selector.

Return

array The block’s element selectors.

Source


					if ( $preset_is_valid ) {
						$escaped_preset[] = $preset;
					}
				}
			}

			if ( ! empty( $escaped_preset ) ) {
				_wp_array_set( $output, $path_with_origin, $escaped_preset );
			}
		}
	}

	// Ensure indirect properties not included in any `PRESETS_METADATA` value are allowed.
	static::remove_indirect_properties( $input, $output );

	return $output;
}

/**
 * Processes a style node and returns the same node
 * without the insecure styles.

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.