Allow custom metadata types

This commit is contained in:
Antony Thompson 2018-05-30 14:58:57 +12:00
parent 835a79d500
commit 41d223e2b7
1 changed files with 1 additions and 1 deletions

View File

@ -3131,7 +3131,7 @@ function acf_get_post_id_info( $post_id = 0 ) {
$type = explode($glue, $post_id);
$id = array_pop($type);
$type = implode($glue, $type);
$meta = array('post', 'user', 'comment', 'term');
$meta = apply_filters('acf/metadata_type/', array('post', 'user', 'comment', 'term'));
// check if is taxonomy (ACF < 5.5)