Skip to content

Conversation

@smichaels
Copy link

hi...a client had a need for this functionality, so I went ahead and implemented this function per your TODO.

thanks!

Sean

@GaryJones
Copy link
Contributor

GaryJones commented Aug 8, 2024

Thanks!

The conflicts would need resolving after all this time.

Would love to see some tests for this.

Copying the TODO notes here:

// get_object_terms
// get_terms

// OR

// get all meta_keys that match the prefix
// strip the prefix

// OR

// get all zones and see if there's a matching meta entry
// strip the prefix from keys

// array_map( 'absint', $zone_ids )
// $zones = array();
// foreach( $zone_ids as $zone_id ) {
// $zones[] = get_zone( $zone_id );
// }
// return $zones;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants