Title: wp_check_term_meta_support_prefilter
Published: December 6, 2018
Last modified: August 20, 2026

---

# wp_check_term_meta_support_prefilter( mixed $check ): mixed

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_check_term_meta_support_prefilter/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_check_term_meta_support_prefilter/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_check_term_meta_support_prefilter/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_check_term_meta_support_prefilter/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_check_term_meta_support_prefilter/?output_format=md#changelog)

Aborts calls to term meta if it is not supported.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_check_term_meta_support_prefilter/?output_format=md#parameters)󠁿

 `$check`mixedrequired

Skip-value for whether to proceed term meta function execution.

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

 mixed Original value of $check, or false if term meta is not supported.

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

    ```php
    function wp_check_term_meta_support_prefilter( $check ) {
    	if ( get_option( 'db_version' ) < 34370 ) {
    		return false;
    	}

    	return $check;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/taxonomy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/taxonomy.php#L5195)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/taxonomy.php#L5195-L5201)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_check_term_meta_support_prefilter/?output_format=md#related)󠁿

| Uses | Description | 
| [get_option()](https://developer.wordpress.org/reference/functions/get_option/)`wp-includes/option.php` |

Retrieves an option value based on an option name.

  |

| Used by | Description | 
| [has_term_meta()](https://developer.wordpress.org/reference/functions/has_term_meta/)`wp-includes/taxonomy.php` |

Gets all meta data, including meta IDs, for the given term ID.

  |

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

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

## User Contributed Notes

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