You appear to be a bot. Output may be restricted
Description
Inserts widgets from the onboarding config file.
Usage
genesis_onboarding_import_widgets( $content, $imported_posts );
Parameters
- $content
- ( array ) required – The content config.
- $imported_posts
- ( array ) required – Imported posts with content short name as keys and IDs as values.
Returns
void
Source
File name: genesis/lib/functions/onboarding.php
Lines:
1 to 18 of 18
function genesis_onboarding_import_widgets( $content, $imported_posts ) { $widget_areas = genesis_onboarding_widgets(); if ( ! $widget_areas ) { return; } // Move widgets in areas we are going to populate to the Inactive Widgets area. WidgetImport\clear_widget_areas( array_keys( $widget_areas ) ); foreach ( $widget_areas as $area => $widgets ) { foreach ( $widgets as $widget ) { $widget_args = WidgetImport\swap_placeholders( $widget['args'], $imported_posts ); WidgetImport\insert_widget( $area, $widget['type'], $widget_args ); } } }