Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #191 from sboerrigter/develop
Browse files Browse the repository at this point in the history
Replace depricated acf_get_term_post_id() function
  • Loading branch information
jasonbahl authored Feb 5, 2021
2 parents d9a0251 + 5f5aed0 commit f6165bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/class-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ protected function get_acf_field_value( $root, $acf_field, $format = false ) {

switch ( true ) {
case $root instanceof Term:
$id = acf_get_term_post_id( $root->taxonomyName, $root->term_id );
$id = 'term_' . $root->term_id;
break;
case $root instanceof Post:
$id = absint( $root->ID );
Expand All @@ -276,7 +276,7 @@ protected function get_acf_field_value( $root, $acf_field, $format = false ) {
$id = absint( $root->menuItemId );
break;
case $root instanceof Menu:
$id = acf_get_term_post_id( 'nav_menu', $root->menuId );
$id = 'term_' . $root->menuId;
break;
case $root instanceof User:
$id = 'user_' . absint( $root->userId );
Expand Down

0 comments on commit f6165bc

Please sign in to comment.