get_dashboard_settings(); $init_script = <<<'JS' wp.domReady( function() { webStories.initializeStoryDashboard( 'web-stories-dashboard', %s ); } ); JS; $script = sprintf( $init_script, wp_json_encode( $dashboard_settings ) ); wp_add_inline_script( Dashboard::SCRIPT_HANDLE, $script ); ?>