Title: WP_HTML_Processor::is_mathml_integration_point
Published: February 24, 2026

---

# WP_HTML_Processor::is_mathml_integration_point(): bool

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#see-also)
 * [Return](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#changelog)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Indicates if the current token is a MathML integration point.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#see-also)󠁿

 * [https://html.spec.whatwg.org/#mathml-text-integration-point](https://html.spec.whatwg.org/#mathml-text-integration-point/)

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#return)󠁿

 bool Whether the current token is a MathML integration point.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#source)󠁿

    ```php
     * @return bool Whether the current token is a MathML integration point.
     */
    private function is_mathml_integration_point(): bool {
    	$current_token = $this->state->current_token;
    	if ( ! isset( $current_token ) ) {
    		return false;
    	}

    	if ( 'math' !== $current_token->namespace || 'M' !== $current_token->node_name[0] ) {
    		return false;
    	}

    	$tag_name = $current_token->node_name;

    	return (
    		'MI' === $tag_name ||
    		'MO' === $tag_name ||
    		'MN' === $tag_name ||
    		'MS' === $tag_name ||
    		'MTEXT' === $tag_name
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/html-api/class-wp-html-processor.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/html-api/class-wp-html-processor.php#L6319)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-processor.php#L6319-L6338)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_html_processor/is_mathml_integration_point/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.7.0](https://developer.wordpress.org/reference/since/6.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_html_processor%2Fis_mathml_integration_point%2F)
before being able to contribute a note or feedback.