sanitize_category_field


sanitize_category_field ( $field, $value, $cat_id, $context )

Parameters:
  • (string) $field Category key to sanitize
  • (mixed) $value Category value to sanitize
  • (int) $cat_id Category ID
  • (string) $context What filter to use, 'raw', 'display', etc.
Returns:
  • (mixed) Same type as $value after $value has been sanitized.
Defined at:

Description

Sanitizes data in single category key field.

Related Functions

sanitize_term_field, sanitize_category, sanitize_text_field, sanitize_user_field, sanitize_textarea_field

Top Google Results

User discussions

wpseek mobile