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



wp_get_layout_child_values › WordPress Function

Since7.1.0
已弃用n/a
› wp_get_layout_child_values ( $layout )
参数:
  • (mixed) $layout Layout object.
    Required: Yes
返回:
  • (array) Child layout values, or an empty array.
定义在:
文档:

Returns the child-layout-only subset of a layout object.



源码

function wp_get_layout_child_values( $layout ) {
	if ( ! is_array( $layout ) ) {
		return array();
	}

	return array_intersect_key(
		$layout,
		array_flip( array( 'selfStretch', 'flexSize', 'columnStart', 'columnSpan', 'rowStart', 'rowSpan' ) )
	);
}