taxonomy_meta_box_sanitize_cb_checkboxes() – Sanitizes POST values from a checkbox taxonomy metabox.

You appear to be a bot. Output may be restricted

Description

Sanitizes POST values from a checkbox taxonomy metabox.

Usage

$int[] = taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms );

Parameters

$taxonomy
( string ) required – The taxonomy name.
$terms
( array ) required – Raw term data from the 'tax_input' field.

Returns

int[] Array of sanitized term IDs.

Source

File name: wordpress/wp-admin/includes/post.php
Lines:

1 to 3 of 3
function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) {
  return array_map( 'intval', $terms );
}
 

 View on GitHub View on Trac