Outputting AIOSEO’s data in the HEAD without using wp_head()

To output the SEO data, social meta and JSON schema that AIOSEO generates in the HEAD section of a page without using wp_head() (in a custom theme for example), use the code snippet below:

if ( function_exists( 'aioseo' ) ) {
	aioseo()->head->output();
}

if desired, you can control which sections of data are output using the aioseo_meta_views filter hook.