Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




sanitize_category_field [ WordPress Function ]

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.
Uses:
Returns:
  • (mixed) Same type as $value after $value has been sanitized.
Defined at:



Sanitizes data in single category key field.

Source


<?php
function sanitize_category_field$field$value$cat_id$context ) {
    return 
sanitize_term_field$field$value$cat_id'category'$context );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics