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?

0

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):

  • deep-assoc-completion
  • Options completion plugin

But as far as I understand you would need to somehow alter the WP_Query definition (PHPDoc) to list possible array keys there.

0
Avatar
Permanently deleted user

Thanks

deep-assoc-completion does what I want

0

请先登录再写评论。