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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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