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



taxonomy_meta_box_sanitize_cb_checkboxes › WordPress Function

Since5.1.0
已弃用n/a
taxonomy_meta_box_sanitize_cb_checkboxes ( $taxonomy, $terms )
参数: (2)
  • (string) $taxonomy The taxonomy name.
    Required: Yes
  • (array) $terms Raw term data from the 'tax_input' field.
    Required: Yes
返回:
  • (int[]) Array of sanitized term IDs.
定义在:
文档:

Sanitizes POST values from a checkbox taxonomy metabox.



源码

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