sanitize_category_field( string $field, mixed $value, int $cat_id, string $context )

Sanitizes data in single category key field.


12 related functions found for: sanitize_category_field

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordscategori, categories, category, category-php, field, sanit, sanitize, taxonomi, taxonomy, valid, validate, wp-includes
wp-parser-packageTaxonomy, WordPress
wp-parser-source-filewp-includes/category.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

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

Top ↑

Description Description


Top ↑

Parameters Parameters

$field

(string) (Required) Category key to sanitize

$value

(mixed) (Required) Category value to sanitize

$cat_id

(int) (Required) Category ID

$context

(string) (Required) What filter to use, 'raw', 'display', etc.


Top ↑

Return Return

(mixed) Same type as $value after $value has been sanitized.


Top ↑

Source Source

File: wp-includes/category.php


			

Top ↑

Changelog 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.