api pll_languages_list args in 1.5.4
-
I am extending the wp-cli polylang plugin in a fork:
https://github.com/nwoetzel/wp-cli-polylang
and wanted to use this api function
pll_languages_list($args = array())
but, it merges the args
$args = wp_parse_args($args, array('fields' => 'slug'));
and I am not quite sure why – since it is documented, that this is optional if only a single field is desired.
But I need the array of PLL_Language objects. I could get them using the function directly on the model, but I guess this is not quite the point of the api?!Thanks
Nils
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘api pll_languages_list args in 1.5.4’ is closed to new replies.