Modify the hreflang links

This snippet for Broadcast shows how to modify the links generated by the hreflang add-on.

add_action( 'broadcast_hreflang_add_links', 'my_broadcast_hreflang_add_links' );
/**
	@brief		Modify the links.
	@since		2018-02-25 19:33:13
**/
function my_broadcast_hreflang_add_links( $action )
{
	// Set the English link
	$action->links[ 'en' ] = 'https://broadcast.plainviewplugins.com';
	// Remove the German language.
	unset( $action->links[ 'de' ] );
}