Switch language

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




sanitize_category [ WordPress Function ]

sanitize_category ( $category, $context = 'display' )
Parameters:
  • (object|array) $category Category data
  • (string) $context Optional. Default is 'display'.
Uses:
Returns:
  • (object|array) Same type as $category with sanitized data for safe use.
Defined at:



Sanitizes category data based on context.

Source


<?php
function sanitize_category$category$context 'display' ) {
    return 
sanitize_term$category'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