WordPress开发者和主题制作者的搜索引擎



taxonomy_meta_box_sanitize_cb_checkboxes ›

Since5.0.0
已弃用n/a
taxonomy_meta_box_sanitize_cb_checkboxes ( $taxonmy, $terms )
参数:
  • (mixed) $terms Raw term data from the 'tax_input' field.
    Required: Yes
返回:
  • (array)
定义在:
文档:

Sanitizes POST values from a checkbox taxonomy metabox.



源码

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