I'm building a plugin that involves domain mapping. That's really neither here nor there for my problem, but there ya have it.
I am attempting to validate a value against the database by using WP_Query to perform a meta_key/meta_value query. The function wrapping this validation is attached to the init hook.
Here is the code: http://pastebin.com/5i4AepzX
None of the $args in the
InnerbotPartnerPagesFrontend::is_valid_partner() plugin method return the desired result. I'm attempting to find any posts of the type "certified-partner" that have a meta_key "ibpp_domain_to_map" with a corresponding meta_value $domain_name...
The only time I get ANY results what so ever and trigger the wp_die method you see on line 41 is when I use the $args that I left uncommented on line 29. But that still returns irrelevant data.
Even trying to run a query that is set to only return "certified-partner" post types is returning 0 results even though there are four of this post_type in the db.
Any help is greatly appreciated!