Switch language

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




sanitize_category_field [ WordPress Function ]

sanitize_category_field ( $field, $value, $cat_id, $context )
Parameter:
  • (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.
Nutzt:
Gibt zurück:
  • (mixed) Same type as $value after $value has been sanitized.
Definiert in:



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 );
}
?>

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

Nutzerduskussionen [ wordpress.org ]

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



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