acf_get_term_post_id()
Deprecated since 5.9.2. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Returns a valid post_id string for a given term and taxonomy. No longer needed since WP introduced the termmeta table in WP 4.4.
No Hooks.
Returns
(String).
Usage
acf_get_term_post_id( $taxonomy, $term_id );
- $taxonomy(required)
- .
- $term_id(required)
- .
Changelog
| Since 5.5.6 | Introduced. |
| Deprecated since | 5.9.2 |
acf_get_term_post_id() acf get term post id code ACF 6.8.8
function acf_get_term_post_id( $taxonomy, $term_id ) {
_deprecated_function( __FUNCTION__, '5.9.2', 'string format term_%d' );
return 'term_' . $term_id;
}