Skip to content

Add return type for query string $args in GetTermsDynamicFunctionReturnTypeExtension() #159

@IanDelMar

Description

@IanDelMar

Currently, the extension does not handle query strings in the $args parameter.

if (!($argument instanceof ConstantArrayType)) {
// Without constant array argument return default return type
return self::defaultType();
}

Supported functions that explicitly accept query strings:

  • get_tags()
  • get_terms()
  • wp_get_object_terms()

Supported functions that implicitly accept query strings by calling wp_parse_args() or a function that does:

  • wp_get_post_categories()
  • wp_get_post_tags()
  • wp_get_post_terms()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions