# metasync/2.6.3/code-snippets/class-metasync-code-snippets.php

Search Atlas SEO – OTTO AI SEO Automation for WordPress, version 2.6.3. 49 lines.

- Page: https://pluginprobe.com/plugins/metasync/2.6.3/code/code-snippets/class-metasync-code-snippets.php
- Raw: https://pluginprobe.com/plugins/metasync/2.6.3/raw/code-snippets/class-metasync-code-snippets.php
- Modified: 2026-02-26T02:11:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/metasync/2.6.3/code/code-snippets/class-metasync-code-snippets.php#L10-L20`.

```php
<?php

/**
 * The header and footer code snippets functionality of the plugin.
 *
 *
 * @link       https://searchatlas.com
 * @since      1.0.0
 * @package    Metasync
 * @subpackage Metasync/code-snippets
 * @author     Engineering Team <support@searchatlas.com>
 */

// Abort if this file is accessed directly.
if (!defined('ABSPATH')) {
	exit;
}

class Metasync_Code_Snippets
{

	/**
	 * Get Header Code Snippet.
	 *
	 */
	public function get_header_snippet()
	{
		$code_snippet_options = get_option(Metasync::option_name)['codesnippets'] ?? '';
		$header_snippet_option = $code_snippet_options['header_snippet'] ?? '';
		printf($header_snippet_option);
		printf(get_post_meta(get_the_ID())['custom_post_header'][0] ?? '');
		printf(get_post_meta(get_the_ID())['searchatlas_embed_top'][0] ?? '');

	}

	/**
	 * Get Footer Code Snippet.
	 *
	 */
	public function get_footer_snippet()
	{
		$code_snippet_options = get_option(Metasync::option_name)['codesnippets'] ?? '';
		$footer_snippet_option = $code_snippet_options['footer_snippet'] ?? '';
		printf($footer_snippet_option);
		printf(get_post_meta(get_the_ID())['custom_post_footer'][0] ?? '');
		printf(get_post_meta(get_the_ID())['searchatlas_embed_bottom'][0] ?? '');
	}
}

```
