sanitize_category_field

Advertisement

Summery Summery

Sanitizes data in single category key field.

Syntax Syntax

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

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.

Return Return

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

Source Source

File: wp-includes/category.php

/**
 * Retrieves all post tags.

Advertisement

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.