Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented get_zones_for_post #19

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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