# metasync/2.7.2/views/metasync-google-instant-post-types.php

Search Atlas SEO – OTTO AI SEO Automation for WordPress, version 2.7.2. 43 lines.

- Page: https://pluginprobe.com/plugins/metasync/2.7.2/code/views/metasync-google-instant-post-types.php
- Raw: https://pluginprobe.com/plugins/metasync/2.7.2/raw/views/metasync-google-instant-post-types.php
- Modified: 2026-07-21T00:29:48+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.7.2/code/views/metasync-google-instant-post-types.php#L10-L20`.

```php
<?php
// If this file is called directly, abort.
if (!defined('ABSPATH')) {
	exit;
}

/**
 * Post Types selection for Google Instant Indexing auto-submit.
 *
 * Expects:
 *   $post_types_settings - array, currently selected post type slugs
 *
 * @package Google Instant Indexing
 */
?>
	<div class="dashboard-card" style="padding: 20px;">
		<h2 style="margin-top: 0;">Post Types Configuration</h2>
		<p style="color: var(--dashboard-text-secondary); margin-bottom: 20px;">Select which post types should be automatically submitted to Google on publish.</p>

		<table class="form-table" style="margin-top: 0;">
			<tr>
				<th scope="row" style="width: 200px;">
					Post Types:
						<?php Metasync::render_tooltip_icon('metasync_google_instant_post_types', 'Choose which content is auto-sent to Google on publish. Google limits this to about 200 URLs per day, so avoid selecting very high-volume content types.'); ?>
				</th>
				<td>
					<?php
					$all_post_types = get_post_types(['public' => true], 'objects');
					$excluded_types = ['attachment', 'elementor_library', 'e-floating-buttons', 'e-landing-page', 'revision', 'nav_menu_item', 'custom_css', 'customize_changeset', 'oembed_cache', 'wp_block', 'wp_template', 'wp_template_part', 'wp_navigation', 'wp_font_family', 'wp_font_face'];
					foreach ($all_post_types as $pt) {
						if (in_array($pt->name, $excluded_types, true)) {
							continue;
						}
					?>
						<label class="pr"><input type="checkbox" name="metasync_post_types[<?php echo esc_attr($pt->name); ?>]" value="<?php echo esc_attr($pt->name); ?>" <?php checked(in_array($pt->name, $post_types_settings, true)); ?>> <?php echo esc_html($pt->label); ?></label>
					<?php
					}
					?>
				</td>
			</tr>
		</table>
	</div>

```
