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



taxonomy_meta_box_sanitize_cb_checkboxes › WordPress Function

Since5.1.0
Deprecatedn/a
taxonomy_meta_box_sanitize_cb_checkboxes ( $taxonomy, $terms )
Parameters: (2)
  • (string) $taxonomy The taxonomy name.
    Required: Yes
  • (array) $terms Raw term data from the 'tax_input' field.
    Required: Yes
Returns:
  • (int[]) Array of sanitized term IDs.
Defined at:
Codex:

Sanitizes POST values from a checkbox taxonomy metabox.



Source

function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) {
	return array_map( 'intval', $terms );
}