PluginProbe
Search Atlas SEO – OTTO AI SEO Automation for WordPress / 2.7.2
Search Atlas SEO – OTTO AI SEO Automation for WordPress v2.7.2
2.7.1 2.7.2 2.7.0 2.6.26 2.6.25 2.6.24 2.6.23 2.6.22 2.6.21 2.6.20 2.6.19 2.6.18 2.6.17 2.6.16 2.6.15 2.6.14 2.6.13 2.6.12 2.6.11 2.6.10 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 All 141 releases
metasync / views / metasync-google-instant-post-types.php

metasync-google-instant-post-types.php in Search Atlas SEO – OTTO AI SEO Automation for WordPress 2.7.2, at views/metasync-google-instant-post-types.php

43 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // If this file is called directly, abort.
3 if (!defined('ABSPATH')) {
4 exit;
5 }
6
7 /**
8 * Post Types selection for Google Instant Indexing auto-submit.
9 *
10 * Expects:
11 * $post_types_settings - array, currently selected post type slugs
12 *
13 * @package Google Instant Indexing
14 */
15 ?>
16 <div class="dashboard-card" style="padding: 20px;">
17 <h2 style="margin-top: 0;">Post Types Configuration</h2>
18 <p style="color: var(--dashboard-text-secondary); margin-bottom: 20px;">Select which post types should be automatically submitted to Google on publish.</p>
19
20 <table class="form-table" style="margin-top: 0;">
21 <tr>
22 <th scope="row" style="width: 200px;">
23 Post Types:
24 <?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.'); ?>
25 </th>
26 <td>
27 <?php
28 $all_post_types = get_post_types(['public' => true], 'objects');
29 $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'];
30 foreach ($all_post_types as $pt) {
31 if (in_array($pt->name, $excluded_types, true)) {
32 continue;
33 }
34 ?>
35 <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>
36 <?php
37 }
38 ?>
39 </td>
40 </tr>
41 </table>
42 </div>
43