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



wp_get_layout_child_values › WordPress Function

Since7.1.0
Deprecatedn/a
wp_get_layout_child_values ( $layout )
Parameters:
  • (mixed) $layout Layout object.
    Required: Yes
Returns:
  • (array) Child layout values, or an empty array.
Defined at:
Codex:

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



Source

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' ) )
	);
}