sanitize_category( object|array $category, string $context = 'display' )

Sanitizes category data based on context.

12 related functions found for: sanitize_category

Top ↑

Related terms found for this post

wp-parser-related-wordscategori, categories, category, category-php, sanit, sanitize, taxonomi, taxonomy, valid, validate, wp-includes
wp-parser-packageTaxonomy, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • categori
  • categories
  • category
  • category-php
  • sanit
  • sanitize
  • taxonomi
  • taxonomy
  • Taxonomy
  • valid
  • validate
  • wp-includes
  • wp-includes/category.php

Top ↑

Description Description

Top ↑

Parameters Parameters


(object|array) (Required) Category data


(string) (Optional) Default is 'display'.

Default value: 'display'

Top ↑

Return Return

(object|array) Same type as $category with sanitized data for safe use.

Top ↑

Source Source

File: wp-includes/category.php


Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.