WP_Query array keys autocomplete
I love the WordPress integration but there is one thing that would help be enormous.
WP_query has a lot of parameters
Is it possible to somehow auto complete the keys?
new WP_Query(['autocomplete-here' => true, 'post_per_page' => 10]);
Might there be a plugin, can I maybe create a plugin myself that will do this?
Can this be done with a docblock maybe?
Please sign in to leave a comment.
Hi there,
I do not know what WordPress plugin can do here .. but some other plugins -- have a look at these (they claim they can help):
But as far as I understand you would need to somehow alter the WP_Query definition (PHPDoc) to list possible array keys there.
Thanks
deep-assoc-completion does what I want