sanitize_category


sanitize_category ( $category, $context = 'display' )

Parameters:
  • (object|array) category Category data.
  • (string) context Optional. Default 'display'.
Returns:
  • (object|array) Same type as $category with sanitized data for safe use.
Defined at:

Description

Sanitizes category data based on context.

Related Functions

sanitize_category_field, sanitize_term, sanitize_key, the_category, sanitize_user

Top Google Results

User discussions

wpseek mobile