Constructor.
Parameters
$htmlstringrequired- HTML to process.
Source
public function __construct( $html ) {
if ( ! is_string( $html ) ) {
_doing_it_wrong(
__METHOD__,
__( 'The HTML parameter must be a string.' ),
'6.9.0'
);
$html = '';
}
$this->html = $html;
}
Related
| Uses | Description |
|---|---|
__()wp-includes/l10n.php | Retrieves the translation of $text. |
_doing_it_wrong()wp-includes/functions.php | Marks something as being incorrectly called. |
| Used by | Description |
|---|---|
wp_add_crossorigin_attributes()wp-includes/media.php | Adds crossorigin=”anonymous” to relevant tags in the given HTML string. |
_wp_kses_sanitize_note_mention_classes()wp-includes/kses.php | Reduces |
wp_get_icon()wp-includes/icons.php | Returns the SVG markup for a registered icon. |
wp_get_tooltip_helper()wp-includes/general-template.php | Retrieves the markup for an accessible tooltip or toggletip. |
wp_get_note_mentioned_user_ids()wp-includes/comment.php | Extracts the mentioned user IDs from note content. |
wp_enqueue_command_palette_assets()wp-includes/script-loader.php | Enqueues the assets required for the Command Palette. |
wp_hoist_late_printed_styles()wp-includes/script-loader.php | Adds the hooks needed for CSS output to be delayed until after the content of the page has been established. |
wp_img_tag_add_auto_sizes()wp-includes/media.php | Adds ‘auto’ to the sizes attribute to the image, if the image is lazy loaded and does not already include it. |
WP_Duotone::restore_image_outer_container()wp-includes/class-wp-duotone.php | Fixes the issue with our generated class name not being added to the block’s outer container in classic themes due to gutenberg_restore_image_outer_container from layout block supports. |
WP_Font_Face::generate_and_print()wp-includes/fonts/class-wp-font-face.php | Generates and prints the |
WP_HTML_Processor::__construct()wp-includes/html-api/class-wp-html-processor.php | Constructor. |
WP_Duotone::render_duotone_support()wp-includes/class-wp-duotone.php | Render out the duotone CSS styles and SVG. |
wp_enqueue_block_support_styles()wp-includes/script-loader.php | Hooks inline styles in the proper place, depending on the active theme. |
wp_get_inline_script_tag()wp-includes/script-loader.php | Constructs an inline script tag. |
wp_get_script_tag()wp-includes/script-loader.php | Formats |
wp_custom_css_cb()wp-includes/theme.php | Renders the Custom CSS style element. |
_oembed_filter_feed_content()wp-includes/embed.php | Prepare the oembed HTML to be displayed in an RSS feed. |
WP_Styles::print_inline_style()wp-includes/class-wp-styles.php | Prints extra CSS styles of a registered stylesheet. |
WP_Styles::do_item()wp-includes/class-wp-styles.php | Processes a style dependency. |
_custom_background_cb()wp-includes/theme.php | Default custom background callback. |
get_url_in_content()wp-includes/formatting.php | Extracts and returns the first URL from passed content. |
wp_kses_hair()wp-includes/kses.php | Given a string of HTML attributes and values, parse into a structured attribute list. |
wp_print_media_templates()wp-includes/media-template.php | Prints the templates used in the media manager. |
Changelog
| Version | Description |
|---|---|
| 6.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.