Instant Indexing for Google - Version 1.1.4

Version Description

Download this release

Release Info

Developer rankmath
Plugin Icon 128x128 Instant Indexing for Google
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

assets/js/console.js CHANGED
@@ -53,10 +53,12 @@ jQuery(document).ready(function($) {
53
  } else {
54
  // Bing URL submission API.
55
  if ( typeof info.error !== 'undefined' ) {
56
- $ufResponse.addClass('fail').find('.response-status').text(rm_giapi.l10n_error+' '+info.error.code).siblings('.response-message').text(info.error.message);
57
- } else {
58
- $ufResponse.addClass('success').find('.response-status').text(rm_giapi.l10n_success+' ').siblings('.response-message').text(rm_giapi.l10n_see_response);
59
- }
 
 
60
  }
61
 
62
  var rawdata = n + " " + action + ": " + urls_str + "\n" + JSON.stringify(info, null, 2) + "\n" + "-".repeat(56);
53
  } else {
54
  // Bing URL submission API.
55
  if ( typeof info.error !== 'undefined' ) {
56
+ $ufResponse.addClass('fail').find('.response-status').text(rm_giapi.l10n_error+' '+info.error.code).siblings('.response-message').text(info.error.message);
57
+ } else {
58
+ $ufResponse.addClass('success').find('.response-status').text(rm_giapi.l10n_success+' ').siblings('.response-message').text(rm_giapi.l10n_see_response);
59
+ }
60
+
61
+ action = 'indexnow_submit';
62
  }
63
 
64
  var rawdata = n + " " + action + ": " + urls_str + "\n" + JSON.stringify(info, null, 2) + "\n" + "-".repeat(56);
includes/class-instant-indexing.php CHANGED
@@ -11,7 +11,7 @@ class RM_GIAPI {
11
  *
12
  * @var string
13
  */
14
- public $version = '1.1.3';
15
 
16
  /**
17
  * Holds the admin menu hook suffix for the "dummy" dashboard.
@@ -79,7 +79,7 @@ class RM_GIAPI {
79
  /**
80
  * Rank Math Instant Indexing API.
81
  *
82
- * @var bool
83
  */
84
  public $rmapi = null;
85
 
@@ -106,9 +106,8 @@ class RM_GIAPI {
106
 
107
  $this->default_nav_tab = 'google_settings';
108
  $this->settings_defaults = [
109
- 'json_key' => '',
110
- 'bing_api_key' => '',
111
- 'post_types' => [],
112
  'bing_post_types' => [
113
  'post' => 'post',
114
  'page' => 'page',
@@ -117,11 +116,11 @@ class RM_GIAPI {
117
 
118
  $this->nav_tabs = [
119
  'google_settings' => __( 'Google API Settings', 'fast-indexing-api' ),
120
- 'bing_settings' => __( 'Bing API Settings', 'fast-indexing-api' ),
121
  'console' => __( 'Console', 'fast-indexing-api' ),
122
  ];
123
 
124
- if ( $this->is_rm_active ) {
125
  $this->rmapi = new RankMath\Instant_Indexing\Api();
126
  add_action( 'admin_init', [ $this, 'remove_rm_admin_page' ] );
127
  } else {
@@ -135,7 +134,7 @@ class RM_GIAPI {
135
  $this->default_nav_tab = 'console';
136
  }
137
 
138
- if ( $this->is_rm_active && $this->get_setting( 'bing_api_key' ) ) {
139
  $this->nav_tabs['bing_settings'] = '<span class="dashicons dashicons-yes-alt"></span> ' . $this->nav_tabs['bing_settings'];
140
  unset( $this->nav_tabs['console'] );
141
  $this->nav_tabs = [ 'console' => __( 'Console', 'fast-indexing-api' ) ] + $this->nav_tabs;
@@ -169,7 +168,7 @@ class RM_GIAPI {
169
  add_action( 'trashed_post', [ $this, 'delete_post' ], 10, 1 );
170
  }
171
 
172
- if ( $this->is_rm_active && $this->get_setting( 'bing_api_key' ) ) {
173
  $post_types = $this->get_setting( 'bing_post_types', [] );
174
  foreach ( $post_types as $key => $post_type ) {
175
  if ( empty( $post_type ) ) {
@@ -181,10 +180,8 @@ class RM_GIAPI {
181
  }
182
  }
183
 
184
- if ( $this->get_setting( 'json_key' ) || $this->get_setting( 'bing_api_key' ) ) {
185
- add_filter( 'post_row_actions', [ $this, 'send_to_api_link' ], 10, 2 );
186
- add_filter( 'page_row_actions', [ $this, 'send_to_api_link' ], 10, 2 );
187
- }
188
 
189
  // Localization.
190
  add_action( 'plugins_loaded', [ $this, 'giapi_load_textdomain' ] );
@@ -307,7 +304,7 @@ class RM_GIAPI {
307
  $actions['rmgiapi_getstatus'] = '<a href="' . admin_url( 'admin.php?page=instant-indexing&tab=console&apiaction=getstatus&_wpnonce=' . $nonce . '&apiurl=' . rawurlencode( get_permalink( $post ) ) ) . '" class="rmgiapi-link rmgiapi_update">' . __( 'Instant Indexing: Google Get Status', 'fast-indexing-api' ) . '</a>';
308
  }
309
  if ( in_array( $post->post_type, $bing_post_types, true ) ) {
310
- $actions['rmgiapi_bing_submit'] = '<a href="' . admin_url( 'admin.php?page=instant-indexing&tab=console&apiaction=bing_submit&_wpnonce=' . $nonce . '&apiurl=' . rawurlencode( get_permalink( $post ) ) ) . '" class="rmgiapi-link rmgiapi_update">' . __( 'Instant Indexing: Bing Submit', 'fast-indexing-api' ) . '</a>';
311
  }
312
 
313
  return $actions;
@@ -338,7 +335,7 @@ class RM_GIAPI {
338
  $action = sanitize_title( wp_unslash( $_POST['api_action'] ) );
339
  header( 'Content-type: application/json' );
340
 
341
- $result = $this->send_to_api( $url_input, $action );
342
  wp_send_json( $result );
343
  exit();
344
  }
@@ -350,7 +347,7 @@ class RM_GIAPI {
350
  * @param string $action API action.
351
  * @return array $data Result of the API call.
352
  */
353
- public function send_to_api( $url_input, $action ) {
354
  $url_input = (array) $url_input;
355
  $urls_count = count( $url_input );
356
 
@@ -367,7 +364,7 @@ class RM_GIAPI {
367
  // init google batch and set root URL.
368
  $service = new Google_Service_Indexing( $this->client );
369
  $batch = new Google_Http_Batch( $this->client, false, 'https://indexing.googleapis.com' );
370
-
371
  foreach ( $url_input as $i => $url ) {
372
  $post_body = new Google_Service_Indexing_UrlNotification();
373
  if ( $action === 'getstatus' ) {
@@ -397,22 +394,22 @@ class RM_GIAPI {
397
  }
398
  } else {
399
  // Bing submit URL API.
400
- $request = $this->rmapi->batch_submit_urls( $url_input );
401
- if ( 'ok' === $request['status'] ) {
402
  $data = [
403
  'success' => true,
404
  ];
405
  } else {
406
  $data = [
407
  'error' => [
408
- 'code' => '',
409
- 'message' => $request['message'],
410
  ],
411
  ];
412
  }
413
  }
414
 
415
- $this->log_request( $action, $urls_count );
416
 
417
  if ( $this->debug ) {
418
  error_log( 'Rank Math Instant Index: ' . $action . ' ' . $url_input[0] . ( count( $url_input ) > 1 ? ' (+)' : '' ) . "\n" . print_r( $data, true ) ); // phpcs:ignore
@@ -717,7 +714,7 @@ class RM_GIAPI {
717
  $settings = [];
718
  if ( isset( $_POST['giapi_settings']['json_key'] ) ) {
719
  $settings = $this->save_google_settings();
720
- } elseif ( isset( $_POST['giapi_settings']['bing_key'] ) ) {
721
  $settings = $this->save_bing_settings();
722
  }
723
 
@@ -773,15 +770,12 @@ class RM_GIAPI {
773
  * @return array
774
  */
775
  private function save_bing_settings() {
776
- $bing_key = sanitize_text_field( wp_unslash( $_POST['giapi_settings']['bing_key'] ) );
777
-
778
  $bing_post_types = isset( $_POST['giapi_settings']['bing_post_types'] ) ? (array) $_POST['giapi_settings']['bing_post_types'] : array(); // phpcs:ignore
779
  $bing_post_types = array_map( 'sanitize_title', $bing_post_types );
780
 
781
  $settings = $this->get_settings();
782
 
783
  $new_settings = [
784
- 'bing_api_key' => $bing_key,
785
  'bing_post_types' => array_values( $bing_post_types ),
786
  ];
787
 
@@ -984,8 +978,8 @@ class RM_GIAPI {
984
  return;
985
  }
986
 
987
- $this->send_to_api( $send_url, 'update' );
988
- $this->add_notice( __( 'A recently published post has been automatically submitted to the Instant Indexing for indexation.', 'fast-indexing-api' ), 'notice-info', null, true );
989
  }
990
 
991
  /**
@@ -1012,8 +1006,8 @@ class RM_GIAPI {
1012
  return;
1013
  }
1014
 
1015
- $this->send_to_api( $send_url, 'bing_submit' );
1016
- $this->add_notice( __( 'A recently published post has been automatically submitted to the Instant Indexing for indexation.', 'fast-indexing-api' ), 'notice-info', null, true );
1017
  }
1018
 
1019
  /**
@@ -1037,7 +1031,7 @@ class RM_GIAPI {
1037
  return;
1038
  }
1039
 
1040
- $this->send_to_api( $send_url, 'delete' );
1041
  $this->add_notice( __( 'A deleted post has been automatically submitted to the Instant Indexing for deletion.', 'fast-indexing-api' ), 'notice-info', null, true );
1042
  }
1043
 
11
  *
12
  * @var string
13
  */
14
+ public $version = '1.1.4';
15
 
16
  /**
17
  * Holds the admin menu hook suffix for the "dummy" dashboard.
79
  /**
80
  * Rank Math Instant Indexing API.
81
  *
82
+ * @var object
83
  */
84
  public $rmapi = null;
85
 
106
 
107
  $this->default_nav_tab = 'google_settings';
108
  $this->settings_defaults = [
109
+ 'json_key' => '',
110
+ 'post_types' => [],
 
111
  'bing_post_types' => [
112
  'post' => 'post',
113
  'page' => 'page',
116
 
117
  $this->nav_tabs = [
118
  'google_settings' => __( 'Google API Settings', 'fast-indexing-api' ),
119
+ 'bing_settings' => __( 'IndexNow API Settings', 'fast-indexing-api' ),
120
  'console' => __( 'Console', 'fast-indexing-api' ),
121
  ];
122
 
123
+ if ( $this->is_rm_active && class_exists( 'RankMath\\Instant_Indexing\\Api' ) ) {
124
  $this->rmapi = new RankMath\Instant_Indexing\Api();
125
  add_action( 'admin_init', [ $this, 'remove_rm_admin_page' ] );
126
  } else {
134
  $this->default_nav_tab = 'console';
135
  }
136
 
137
+ if ( $this->is_rm_active ) {
138
  $this->nav_tabs['bing_settings'] = '<span class="dashicons dashicons-yes-alt"></span> ' . $this->nav_tabs['bing_settings'];
139
  unset( $this->nav_tabs['console'] );
140
  $this->nav_tabs = [ 'console' => __( 'Console', 'fast-indexing-api' ) ] + $this->nav_tabs;
168
  add_action( 'trashed_post', [ $this, 'delete_post' ], 10, 1 );
169
  }
170
 
171
+ if ( $this->is_rm_active ) {
172
  $post_types = $this->get_setting( 'bing_post_types', [] );
173
  foreach ( $post_types as $key => $post_type ) {
174
  if ( empty( $post_type ) ) {
180
  }
181
  }
182
 
183
+ add_filter( 'post_row_actions', [ $this, 'send_to_api_link' ], 10, 2 );
184
+ add_filter( 'page_row_actions', [ $this, 'send_to_api_link' ], 10, 2 );
 
 
185
 
186
  // Localization.
187
  add_action( 'plugins_loaded', [ $this, 'giapi_load_textdomain' ] );
304
  $actions['rmgiapi_getstatus'] = '<a href="' . admin_url( 'admin.php?page=instant-indexing&tab=console&apiaction=getstatus&_wpnonce=' . $nonce . '&apiurl=' . rawurlencode( get_permalink( $post ) ) ) . '" class="rmgiapi-link rmgiapi_update">' . __( 'Instant Indexing: Google Get Status', 'fast-indexing-api' ) . '</a>';
305
  }
306
  if ( in_array( $post->post_type, $bing_post_types, true ) ) {
307
+ $actions['rmgiapi_bing_submit'] = '<a href="' . admin_url( 'admin.php?page=instant-indexing&tab=console&apiaction=bing_submit&_wpnonce=' . $nonce . '&apiurl=' . rawurlencode( get_permalink( $post ) ) ) . '" class="rmgiapi-link rmgiapi_update">' . __( 'Instant Indexing: Submit to IndexNow', 'fast-indexing-api' ) . '</a>';
308
  }
309
 
310
  return $actions;
335
  $action = sanitize_title( wp_unslash( $_POST['api_action'] ) );
336
  header( 'Content-type: application/json' );
337
 
338
+ $result = $this->send_to_api( $url_input, $action, true );
339
  wp_send_json( $result );
340
  exit();
341
  }
347
  * @param string $action API action.
348
  * @return array $data Result of the API call.
349
  */
350
+ public function send_to_api( $url_input, $action, $is_manual = true ) {
351
  $url_input = (array) $url_input;
352
  $urls_count = count( $url_input );
353
 
364
  // init google batch and set root URL.
365
  $service = new Google_Service_Indexing( $this->client );
366
  $batch = new Google_Http_Batch( $this->client, false, 'https://indexing.googleapis.com' );
367
+
368
  foreach ( $url_input as $i => $url ) {
369
  $post_body = new Google_Service_Indexing_UrlNotification();
370
  if ( $action === 'getstatus' ) {
394
  }
395
  } else {
396
  // Bing submit URL API.
397
+ $request = $this->rmapi->submit( $url_input, $is_manual );
398
+ if ( $request ) {
399
  $data = [
400
  'success' => true,
401
  ];
402
  } else {
403
  $data = [
404
  'error' => [
405
+ 'code' => $this->rmapi->get_response_code(),
406
+ 'message' => $this->rmapi->get_error(),
407
  ],
408
  ];
409
  }
410
  }
411
 
412
+ $this->log_request( 'indexnow_submit', $urls_count );
413
 
414
  if ( $this->debug ) {
415
  error_log( 'Rank Math Instant Index: ' . $action . ' ' . $url_input[0] . ( count( $url_input ) > 1 ? ' (+)' : '' ) . "\n" . print_r( $data, true ) ); // phpcs:ignore
714
  $settings = [];
715
  if ( isset( $_POST['giapi_settings']['json_key'] ) ) {
716
  $settings = $this->save_google_settings();
717
+ } elseif ( isset( $_POST['giapi_settings']['bing_post_types'] ) ) {
718
  $settings = $this->save_bing_settings();
719
  }
720
 
770
  * @return array
771
  */
772
  private function save_bing_settings() {
 
 
773
  $bing_post_types = isset( $_POST['giapi_settings']['bing_post_types'] ) ? (array) $_POST['giapi_settings']['bing_post_types'] : array(); // phpcs:ignore
774
  $bing_post_types = array_map( 'sanitize_title', $bing_post_types );
775
 
776
  $settings = $this->get_settings();
777
 
778
  $new_settings = [
 
779
  'bing_post_types' => array_values( $bing_post_types ),
780
  ];
781
 
978
  return;
979
  }
980
 
981
+ $this->send_to_api( $send_url, 'update', false );
982
+ $this->add_notice( __( 'A recently published post has been automatically submitted to the Instant Indexing API.', 'fast-indexing-api' ), 'notice-info', null, true );
983
  }
984
 
985
  /**
1006
  return;
1007
  }
1008
 
1009
+ $this->send_to_api( $send_url, 'bing_submit', false );
1010
+ $this->add_notice( __( 'A recently published post has been automatically submitted to the Instant Indexing API.', 'fast-indexing-api' ), 'notice-info', null, true );
1011
  }
1012
 
1013
  /**
1031
  return;
1032
  }
1033
 
1034
+ $this->send_to_api( $send_url, 'delete', false );
1035
  $this->add_notice( __( 'A deleted post has been automatically submitted to the Instant Indexing for deletion.', 'fast-indexing-api' ), 'notice-info', null, true );
1036
  }
1037
 
instant-indexing.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Instant Indexing
4
  * Plugin URI: https://rankmath.com/wordpress/plugin/instant-indexing/
5
  * Description: Get your website crawled immediately by Google using their NEW Indexing APIs.
6
- * Version: 1.1.3
7
  * Author: Rank Math
8
  * Author URI: https://s.rankmath.com/home
9
  * License: GPL v3
3
  * Plugin Name: Instant Indexing
4
  * Plugin URI: https://rankmath.com/wordpress/plugin/instant-indexing/
5
  * Description: Get your website crawled immediately by Google using their NEW Indexing APIs.
6
+ * Version: 1.1.4
7
  * Author: Rank Math
8
  * Author URI: https://s.rankmath.com/home
9
  * License: GPL v3
languages/fast-indexing-api.pot CHANGED
@@ -1,285 +1,405 @@
1
- # Copyright (C) 2021 fast-indexing-api
2
- # This file is distributed under the same license as the fast-indexing-api package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: fast-indexing-api\n"
 
 
 
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
- "Language-Team: Rank Math\n"
10
- "Last-Translator: Rank Math\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
13
- "X-Poedit-SearchPath-0: .\n"
14
- "X-Poedit-SearchPathExcluded-0: *.js\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 
 
 
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  msgid "Google API Settings"
19
  msgstr ""
20
 
21
- msgid "Bing API Settings"
 
 
22
  msgstr ""
23
 
 
 
 
24
  msgid "Console"
25
  msgstr ""
26
 
 
 
27
  msgid "Instant Indexing: Google Update"
28
  msgstr ""
29
 
 
 
30
  msgid "Instant Indexing: Google Get Status"
31
  msgstr ""
32
 
 
33
  msgid "Instant Indexing: Bing Submit"
34
  msgstr ""
35
 
36
- msgid "Dashboard"
 
37
  msgstr ""
38
 
39
- msgid "Instant Indexing"
 
 
40
  msgstr ""
41
 
 
42
  msgid "Success"
43
  msgstr ""
44
 
 
45
  msgid "Error"
46
  msgstr ""
47
 
 
48
  msgid "Last updated "
49
  msgstr ""
50
 
 
51
  msgid "See response for details."
52
  msgstr ""
53
 
 
 
 
54
  msgid "Settings could not be updated."
55
  msgstr ""
56
 
 
57
  msgid "Settings updated."
58
  msgstr ""
59
 
 
60
  msgid "Directly notify search engines when pages are added, updated or removed."
61
  msgstr ""
62
 
 
63
  msgid "You cannot deactivate this module because the Instant Indexing plugin is active on this site."
64
  msgstr ""
65
 
66
  #. translators: %s is a link to Rank Math plugin page
 
67
  msgid "It is recommended to use %s along with the Instant Indexing plugin."
68
  msgstr ""
69
 
70
- msgid "A recently published post has been automatically submitted to the Instant Indexing for indexation."
 
 
71
  msgstr ""
72
 
 
73
  msgid "A deleted post has been automatically submitted to the Instant Indexing for deletion."
74
  msgstr ""
75
 
 
 
 
 
 
 
 
 
 
 
 
76
  msgid "Settings"
77
  msgstr ""
78
 
79
- msgid "Bing URL Submission API Settings"
 
80
  msgstr ""
81
 
82
- msgid "Bing API Key:"
 
83
  msgstr ""
84
 
85
- msgid "Paste your Bing URL Submission API Key in this field."
86
- msgstr ""
87
-
88
- msgid "Read our setup guide"
89
- msgstr ""
90
-
91
- msgid "Submit Post Types to Bing:"
92
- msgstr ""
93
-
94
- msgid "Submit posts from these post types automatically to the Bing URL Submission API when a post is published or edited."
95
  msgstr ""
96
 
97
  #. translators: %s is a link to the plugin settings tab.
 
98
  msgid "Please navigate to the %s tab to configure the plugin."
99
  msgstr ""
100
 
 
101
  msgid "Google API Remaining Quota:"
102
  msgstr ""
103
 
 
104
  msgid "PublishRequestsPerDayPerProject"
105
  msgstr ""
106
 
 
107
  msgid "RequestsPerMinutePerProject"
108
  msgstr ""
109
 
 
110
  msgid "MetadataRequestsPerMinutePerProject"
111
  msgstr ""
112
 
113
- msgid "Bing API Remaining Quota:"
114
- msgstr ""
115
-
116
- msgid "UrlSubmissionQuota (per day)"
117
- msgstr ""
118
-
119
- msgid "URLs (one per line, up to 100 for Google and 500 for Bing):"
120
  msgstr ""
121
 
 
122
  msgid "Action:"
123
  msgstr ""
124
 
 
125
  msgid "<strong>Google</strong>: Publish/update URL"
126
  msgstr ""
127
 
 
128
  msgid "<strong>Google</strong>: Remove URL"
129
  msgstr ""
130
 
 
131
  msgid "<strong>Google</strong>: Get URL status"
132
  msgstr ""
133
 
134
- msgid "<strong>Bing</strong>: Submit URL"
 
135
  msgstr ""
136
 
 
137
  msgid "Send to API"
138
  msgstr ""
139
 
 
140
  msgid "Show Raw Response"
141
  msgstr ""
142
 
 
143
  msgid "Response..."
144
  msgstr ""
145
 
 
146
  msgid "Rank Math Knowledge Base"
147
  msgstr ""
148
 
 
 
 
149
  msgid "Modules"
150
  msgstr ""
151
 
 
 
152
  msgid "Help"
153
  msgstr ""
154
 
 
 
155
  msgid "Setup Wizard"
156
  msgstr ""
157
 
 
 
158
  msgid "Import &amp; Export"
159
  msgstr ""
160
 
 
161
  msgid "404 Monitor"
162
  msgstr ""
163
 
 
164
  msgid "Records the URLs on which visitors &amp; search engines run into 404 Errors. You can also turn on Redirections to redirect the error causing URLs to other URLs."
165
  msgstr ""
166
 
 
167
  msgid "ACF"
168
  msgstr ""
169
 
 
170
  msgid "ACF support helps Rank Math SEO read and analyze content written in the Advanced Custom Fields. If your theme uses ACF, you should enable this option."
171
  msgstr ""
172
 
 
173
  msgid "AMP"
174
  msgstr ""
175
 
 
176
  msgid "Install an AMP plugin to make Rank Math work with Accelerated Mobile Pages. Rank Math automatically adds required meta tags in all the AMP pages."
177
  msgstr ""
178
 
 
179
  msgid "Analytics"
180
  msgstr ""
181
 
 
182
  msgid "Connect Rank Math with Google Search Console to see the most important information from Google directly in your WordPress dashboard."
183
  msgstr ""
184
 
 
185
  msgid "bbPress"
186
  msgstr ""
187
 
 
188
  msgid "Add proper Meta tags to your bbPress forum posts, categories, profiles, etc. Get more options to take control of what search engines see and how they see it."
189
  msgstr ""
190
 
 
191
  msgid "BuddyPress"
192
  msgstr ""
193
 
 
194
  msgid "Enable the BuddyPress module for Rank Math SEO to make your BuddyPress forum SEO friendly by adding proper meta tags to all forum pages."
195
  msgstr ""
196
 
 
197
  msgid "Image SEO"
198
  msgstr ""
199
 
 
200
  msgid "Advanced Image SEO options to supercharge your website. Automate the task of adding the ALT and Title tags to your images on the fly."
201
  msgstr ""
202
 
 
203
  msgid "Directly notify search engines(Bing) when pages are added, updated or removed."
204
  msgstr ""
205
 
 
206
  msgid "Link Counter"
207
  msgstr ""
208
 
 
209
  msgid "Counts the total number of internal, external links, to and from links inside your posts. You can also see the same count in the Posts List Page."
210
  msgstr ""
211
 
 
212
  msgid "Local SEO &amp; Knowledge Graph"
213
  msgstr ""
214
 
 
215
  msgid "Dominate the search results for the local audiences by optimizing your website for Local SEO and it also helps you to add code related to Knowledge Graph."
216
  msgstr ""
217
 
 
218
  msgid "Redirections"
219
  msgstr ""
220
 
 
221
  msgid "Redirect non-existent content easily with 301 and 302 status code. This can help improve your site ranking. Also supports many other response codes."
222
  msgstr ""
223
 
 
224
  msgid "Schema (Structured Data)"
225
  msgstr ""
226
 
 
227
  msgid "Enable support for the structured data, which adds Schema code in your website, resulting in rich search results, better CTR and more traffic."
228
  msgstr ""
229
 
 
230
  msgid "Role Manager"
231
  msgstr ""
232
 
 
233
  msgid "The Role Manager allows you to use WordPress roles to control which of your site users can have edit or view access to Rank Math's settings."
234
  msgstr ""
235
 
 
236
  msgid "SEO Analysis"
237
  msgstr ""
238
 
 
239
  msgid "Let Rank Math analyze your website and your website's content using 70+ different tests to provide tailor-made SEO Analysis to you."
240
  msgstr ""
241
 
 
242
  msgid "Sitemap"
243
  msgstr ""
244
 
 
245
  msgid "Enable Rank Math's sitemap feature, which helps search engines intelligently crawl your website's content. It also supports hreflang tag."
246
  msgstr ""
247
 
 
248
  msgid "Google Web Stories"
249
  msgstr ""
250
 
 
251
  msgid "Make any Story created with the Web Stories WordPress plugin SEO-Ready with automatic support for Schema and Meta tags."
252
  msgstr ""
253
 
 
254
  msgid "WooCommerce"
255
  msgstr ""
256
 
 
257
  msgid "Optimize WooCommerce Pages for Search Engines by adding required metadata and Product Schema which will make your site stand out in the SERPs."
258
  msgstr ""
259
 
260
- msgid "Install for Free"
 
261
  msgstr ""
262
 
263
- msgid "Activate Now"
 
264
  msgstr ""
265
 
 
266
  msgid "Google Instant Indexing API Settings"
267
  msgstr ""
268
 
 
269
  msgid "Google JSON Key:"
270
  msgstr ""
271
 
 
272
  msgid "Upload the Service Account JSON key file you obtained from Google API Console or paste its contents in the field."
273
  msgstr ""
274
 
275
- msgid "Or upload JSON file: "
 
276
  msgstr ""
277
 
 
278
  msgid "<code>rank-math-835b6feb842b.json</code> file found in the plugin folder. You cannot change the JSON key from here until you delete or remame this file."
279
  msgstr ""
280
 
281
- msgid "Submit Post Types to Google:"
 
 
 
 
 
282
  msgstr ""
283
 
 
284
  msgid "Submit posts from these post types automatically to the Google Instant Indexing API when a post is published, edited, or deleted."
285
  msgstr ""
1
+ # Copyright (C) 2022 Rank Math
2
+ # This file is distributed under the GPL v3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Instant Indexing 1.1.4\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/fast-indexing-api\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-01-26T20:43:22+00:00\n"
13
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.5.0\n"
15
+ "X-Domain: fast-indexing-api\n"
16
+
17
+ #. Plugin Name of the plugin
18
+ #: includes/class-instant-indexing.php:576
19
+ #: includes/class-instant-indexing.php:581
20
+ #: includes/class-instant-indexing.php:892
21
+ #: views/dashboard.php:208
22
+ msgid "Instant Indexing"
23
+ msgstr ""
24
 
25
+ #. Plugin URI of the plugin
26
+ msgid "https://rankmath.com/wordpress/plugin/instant-indexing/"
27
+ msgstr ""
28
+
29
+ #. Description of the plugin
30
+ msgid "Get your website crawled immediately by Google using their NEW Indexing APIs."
31
+ msgstr ""
32
+
33
+ #. Author of the plugin
34
+ msgid "Rank Math"
35
+ msgstr ""
36
+
37
+ #. Author URI of the plugin
38
+ msgid "https://s.rankmath.com/home"
39
+ msgstr ""
40
+
41
+ #: includes/class-instant-indexing.php:119
42
  msgid "Google API Settings"
43
  msgstr ""
44
 
45
+ #: includes/class-instant-indexing.php:120
46
+ #: views/bing-settings.php:10
47
+ msgid "IndexNow API Settings"
48
  msgstr ""
49
 
50
+ #: includes/class-instant-indexing.php:121
51
+ #: includes/class-instant-indexing.php:134
52
+ #: includes/class-instant-indexing.php:141
53
  msgid "Console"
54
  msgstr ""
55
 
56
+ #: includes/class-instant-indexing.php:204
57
+ #: includes/class-instant-indexing.php:304
58
  msgid "Instant Indexing: Google Update"
59
  msgstr ""
60
 
61
+ #: includes/class-instant-indexing.php:205
62
+ #: includes/class-instant-indexing.php:305
63
  msgid "Instant Indexing: Google Get Status"
64
  msgstr ""
65
 
66
+ #: includes/class-instant-indexing.php:217
67
  msgid "Instant Indexing: Bing Submit"
68
  msgstr ""
69
 
70
+ #: includes/class-instant-indexing.php:308
71
+ msgid "Instant Indexing: Submit to IndexNow"
72
  msgstr ""
73
 
74
+ #: includes/class-instant-indexing.php:575
75
+ #: views/dashboard.php:19
76
+ msgid "Dashboard"
77
  msgstr ""
78
 
79
+ #: includes/class-instant-indexing.php:670
80
  msgid "Success"
81
  msgstr ""
82
 
83
+ #: includes/class-instant-indexing.php:671
84
  msgid "Error"
85
  msgstr ""
86
 
87
+ #: includes/class-instant-indexing.php:672
88
  msgid "Last updated "
89
  msgstr ""
90
 
91
+ #: includes/class-instant-indexing.php:673
92
  msgid "See response for details."
93
  msgstr ""
94
 
95
+ #: includes/class-instant-indexing.php:707
96
+ #: includes/class-instant-indexing.php:711
97
+ #: includes/class-instant-indexing.php:723
98
  msgid "Settings could not be updated."
99
  msgstr ""
100
 
101
+ #: includes/class-instant-indexing.php:728
102
  msgid "Settings updated."
103
  msgstr ""
104
 
105
+ #: includes/class-instant-indexing.php:893
106
  msgid "Directly notify search engines when pages are added, updated or removed."
107
  msgstr ""
108
 
109
+ #: includes/class-instant-indexing.php:898
110
  msgid "You cannot deactivate this module because the Instant Indexing plugin is active on this site."
111
  msgstr ""
112
 
113
  #. translators: %s is a link to Rank Math plugin page
114
+ #: includes/class-instant-indexing.php:951
115
  msgid "It is recommended to use %s along with the Instant Indexing plugin."
116
  msgstr ""
117
 
118
+ #: includes/class-instant-indexing.php:983
119
+ #: includes/class-instant-indexing.php:1011
120
+ msgid "A recently published post has been automatically submitted to the Instant Indexing API."
121
  msgstr ""
122
 
123
+ #: includes/class-instant-indexing.php:1036
124
  msgid "A deleted post has been automatically submitted to the Instant Indexing for deletion."
125
  msgstr ""
126
 
127
+ #: includes/class-instant-indexing.php:1046
128
+ #: views/console.php:21
129
+ #: views/dashboard.php:49
130
+ #: views/dashboard.php:119
131
+ #: views/dashboard.php:189
132
+ #: views/dashboard.php:213
133
+ #: views/dashboard.php:260
134
+ #: views/dashboard.php:284
135
+ #: views/dashboard.php:308
136
+ #: views/dashboard.php:332
137
+ #: views/dashboard.php:356
138
  msgid "Settings"
139
  msgstr ""
140
 
141
+ #: views/bing-settings.php:11
142
+ msgid "The IndexNow API allows you to submit URLs to Bing and Yandex for indexing."
143
  msgstr ""
144
 
145
+ #: views/bing-settings.php:17
146
+ msgid "Submit Posts IndexNow:"
147
  msgstr ""
148
 
149
+ #: views/bing-settings.php:18
150
+ msgid "Submit posts from these post types automatically to the IndexNow API when a post is published or edited."
 
 
 
 
 
 
 
 
151
  msgstr ""
152
 
153
  #. translators: %s is a link to the plugin settings tab.
154
+ #: views/console.php:20
155
  msgid "Please navigate to the %s tab to configure the plugin."
156
  msgstr ""
157
 
158
+ #: views/console.php:34
159
  msgid "Google API Remaining Quota:"
160
  msgstr ""
161
 
162
+ #: views/console.php:35
163
  msgid "PublishRequestsPerDayPerProject"
164
  msgstr ""
165
 
166
+ #: views/console.php:36
167
  msgid "RequestsPerMinutePerProject"
168
  msgstr ""
169
 
170
+ #: views/console.php:37
171
  msgid "MetadataRequestsPerMinutePerProject"
172
  msgstr ""
173
 
174
+ #: views/console.php:42
175
+ msgid "URLs (one per line, up to 100 for Google and 10,000 for IndexNow):"
 
 
 
 
 
176
  msgstr ""
177
 
178
+ #: views/console.php:45
179
  msgid "Action:"
180
  msgstr ""
181
 
182
+ #: views/console.php:47
183
  msgid "<strong>Google</strong>: Publish/update URL"
184
  msgstr ""
185
 
186
+ #: views/console.php:48
187
  msgid "<strong>Google</strong>: Remove URL"
188
  msgstr ""
189
 
190
+ #: views/console.php:49
191
  msgid "<strong>Google</strong>: Get URL status"
192
  msgstr ""
193
 
194
+ #: views/console.php:52
195
+ msgid "<strong>IndexNow</strong>: Submit URL"
196
  msgstr ""
197
 
198
+ #: views/console.php:55
199
  msgid "Send to API"
200
  msgstr ""
201
 
202
+ #: views/console.php:65
203
  msgid "Show Raw Response"
204
  msgstr ""
205
 
206
+ #: views/console.php:69
207
  msgid "Response..."
208
  msgstr ""
209
 
210
+ #: views/dashboard.php:15
211
  msgid "Rank Math Knowledge Base"
212
  msgstr ""
213
 
214
+ #: views/dashboard.php:21
215
+ #: views/dashboard.php:27
216
+ #: views/dashboard.php:28
217
  msgid "Modules"
218
  msgstr ""
219
 
220
+ #: views/dashboard.php:30
221
+ #: views/dashboard.php:31
222
  msgid "Help"
223
  msgstr ""
224
 
225
+ #: views/dashboard.php:33
226
+ #: views/dashboard.php:34
227
  msgid "Setup Wizard"
228
  msgstr ""
229
 
230
+ #: views/dashboard.php:36
231
+ #: views/dashboard.php:37
232
  msgid "Import &amp; Export"
233
  msgstr ""
234
 
235
+ #: views/dashboard.php:45
236
  msgid "404 Monitor"
237
  msgstr ""
238
 
239
+ #: views/dashboard.php:46
240
  msgid "Records the URLs on which visitors &amp; search engines run into 404 Errors. You can also turn on Redirections to redirect the error causing URLs to other URLs."
241
  msgstr ""
242
 
243
+ #: views/dashboard.php:68
244
  msgid "ACF"
245
  msgstr ""
246
 
247
+ #: views/dashboard.php:70
248
  msgid "ACF support helps Rank Math SEO read and analyze content written in the Advanced Custom Fields. If your theme uses ACF, you should enable this option."
249
  msgstr ""
250
 
251
+ #: views/dashboard.php:91
252
  msgid "AMP"
253
  msgstr ""
254
 
255
+ #: views/dashboard.php:93
256
  msgid "Install an AMP plugin to make Rank Math work with Accelerated Mobile Pages. Rank Math automatically adds required meta tags in all the AMP pages."
257
  msgstr ""
258
 
259
+ #: views/dashboard.php:114
260
  msgid "Analytics"
261
  msgstr ""
262
 
263
+ #: views/dashboard.php:116
264
  msgid "Connect Rank Math with Google Search Console to see the most important information from Google directly in your WordPress dashboard."
265
  msgstr ""
266
 
267
+ #: views/dashboard.php:138
268
  msgid "bbPress"
269
  msgstr ""
270
 
271
+ #: views/dashboard.php:140
272
  msgid "Add proper Meta tags to your bbPress forum posts, categories, profiles, etc. Get more options to take control of what search engines see and how they see it."
273
  msgstr ""
274
 
275
+ #: views/dashboard.php:161
276
  msgid "BuddyPress"
277
  msgstr ""
278
 
279
+ #: views/dashboard.php:163
280
  msgid "Enable the BuddyPress module for Rank Math SEO to make your BuddyPress forum SEO friendly by adding proper meta tags to all forum pages."
281
  msgstr ""
282
 
283
+ #: views/dashboard.php:184
284
  msgid "Image SEO"
285
  msgstr ""
286
 
287
+ #: views/dashboard.php:186
288
  msgid "Advanced Image SEO options to supercharge your website. Automate the task of adding the ALT and Title tags to your images on the fly."
289
  msgstr ""
290
 
291
+ #: views/dashboard.php:210
292
  msgid "Directly notify search engines(Bing) when pages are added, updated or removed."
293
  msgstr ""
294
 
295
+ #: views/dashboard.php:232
296
  msgid "Link Counter"
297
  msgstr ""
298
 
299
+ #: views/dashboard.php:234
300
  msgid "Counts the total number of internal, external links, to and from links inside your posts. You can also see the same count in the Posts List Page."
301
  msgstr ""
302
 
303
+ #: views/dashboard.php:255
304
  msgid "Local SEO &amp; Knowledge Graph"
305
  msgstr ""
306
 
307
+ #: views/dashboard.php:257
308
  msgid "Dominate the search results for the local audiences by optimizing your website for Local SEO and it also helps you to add code related to Knowledge Graph."
309
  msgstr ""
310
 
311
+ #: views/dashboard.php:279
312
  msgid "Redirections"
313
  msgstr ""
314
 
315
+ #: views/dashboard.php:281
316
  msgid "Redirect non-existent content easily with 301 and 302 status code. This can help improve your site ranking. Also supports many other response codes."
317
  msgstr ""
318
 
319
+ #: views/dashboard.php:303
320
  msgid "Schema (Structured Data)"
321
  msgstr ""
322
 
323
+ #: views/dashboard.php:305
324
  msgid "Enable support for the structured data, which adds Schema code in your website, resulting in rich search results, better CTR and more traffic."
325
  msgstr ""
326
 
327
+ #: views/dashboard.php:327
328
  msgid "Role Manager"
329
  msgstr ""
330
 
331
+ #: views/dashboard.php:329
332
  msgid "The Role Manager allows you to use WordPress roles to control which of your site users can have edit or view access to Rank Math's settings."
333
  msgstr ""
334
 
335
+ #: views/dashboard.php:351
336
  msgid "SEO Analysis"
337
  msgstr ""
338
 
339
+ #: views/dashboard.php:353
340
  msgid "Let Rank Math analyze your website and your website's content using 70+ different tests to provide tailor-made SEO Analysis to you."
341
  msgstr ""
342
 
343
+ #: views/dashboard.php:375
344
  msgid "Sitemap"
345
  msgstr ""
346
 
347
+ #: views/dashboard.php:377
348
  msgid "Enable Rank Math's sitemap feature, which helps search engines intelligently crawl your website's content. It also supports hreflang tag."
349
  msgstr ""
350
 
351
+ #: views/dashboard.php:399
352
  msgid "Google Web Stories"
353
  msgstr ""
354
 
355
+ #: views/dashboard.php:401
356
  msgid "Make any Story created with the Web Stories WordPress plugin SEO-Ready with automatic support for Schema and Meta tags."
357
  msgstr ""
358
 
359
+ #: views/dashboard.php:422
360
  msgid "WooCommerce"
361
  msgstr ""
362
 
363
+ #: views/dashboard.php:424
364
  msgid "Optimize WooCommerce Pages for Search Engines by adding required metadata and Product Schema which will make your site stand out in the SERPs."
365
  msgstr ""
366
 
367
+ #: views/dashboard.php:448
368
+ msgid "Activate Now"
369
  msgstr ""
370
 
371
+ #: views/dashboard.php:453
372
+ msgid "Install for Free"
373
  msgstr ""
374
 
375
+ #: views/google-settings.php:10
376
  msgid "Google Instant Indexing API Settings"
377
  msgstr ""
378
 
379
+ #: views/google-settings.php:16
380
  msgid "Google JSON Key:"
381
  msgstr ""
382
 
383
+ #: views/google-settings.php:17
384
  msgid "Upload the Service Account JSON key file you obtained from Google API Console or paste its contents in the field."
385
  msgstr ""
386
 
387
+ #: views/google-settings.php:18
388
+ msgid "Read our setup guide"
389
  msgstr ""
390
 
391
+ #: views/google-settings.php:24
392
  msgid "<code>rank-math-835b6feb842b.json</code> file found in the plugin folder. You cannot change the JSON key from here until you delete or remame this file."
393
  msgstr ""
394
 
395
+ #: views/google-settings.php:29
396
+ msgid "Or upload JSON file: "
397
+ msgstr ""
398
+
399
+ #: views/google-settings.php:37
400
+ msgid "Submit Posts to Google:"
401
  msgstr ""
402
 
403
+ #: views/google-settings.php:38
404
  msgid "Submit posts from these post types automatically to the Google Instant Indexing API when a post is published, edited, or deleted."
405
  msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: indexing api, crawling, live streaming, fast indexing, job posting
5
  Tested up to: 5.9
6
  Requires at least: 5.6
7
  Requires PHP: 7.2
8
- Stable tag: 1.1.3
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
@@ -106,6 +106,10 @@ Technically, yes. That's what the plugin is made to do. But, please note that we
106
 
107
  == Changelog ==
108
 
 
 
 
 
109
  = v1.1.3 [Dec 10, 2021] =
110
  * Fixed: Request count when sending multiple URL's
111
  * Fixed: PHP notice showing on the Bing settings page in some cases
5
  Tested up to: 5.9
6
  Requires at least: 5.6
7
  Requires PHP: 7.2
8
+ Stable tag: 1.1.4
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
106
 
107
  == Changelog ==
108
 
109
+ = v1.1.4 [Jan 27, 2022] =
110
+ * Improved: Make use of the new IndexNow API if the [Rank Math SEO](https://rankmath.com/) plugin is also active
111
+ * Fixed: PHP error when submitting to Bing API
112
+
113
  = v1.1.3 [Dec 10, 2021] =
114
  * Fixed: Request count when sending multiple URL's
115
  * Fixed: PHP notice showing on the Bing settings page in some cases
views/bing-settings.php CHANGED
@@ -7,24 +7,15 @@
7
 
8
  ?>
9
  <div class="wrap rank-math-wrap">
10
- <h1><?php esc_attr_e( 'Bing URL Submission API Settings', 'fast-indexing-api' ); ?></h1>
 
11
  <form enctype="multipart/form-data" method="POST" action="">
12
  <?php wp_nonce_field( 'giapi-save', '_wpnonce', true, true ); ?>
13
  <table class="form-table">
14
- <tr valign="top" class="bing-api-key-row">
15
- <th scope="row">
16
- <?php esc_html_e( 'Bing API Key:', 'fast-indexing-api' ); ?>
17
- <p class="description"><?php esc_html_e( 'Paste your Bing URL Submission API Key in this field.', 'fast-indexing-api' ); ?></p>
18
- <div class="setup-guide-link-wrapper"><span class="dashicons dashicons-editor-help"></span> <a href="<?php echo $this->bing_guide_url; ?>" target="_blank"><?php esc_html_e( 'Read our setup guide', 'fast-indexing-api' ); ?></a></div>
19
- </th>
20
- <td>
21
- <input type="password" value="<?php echo esc_attr( $this->get_setting( 'bing_api_key' ) ); ?>" class="large-text" name="giapi_settings[bing_key]" >
22
- </td>
23
- </tr>
24
  <tr valign="top">
25
  <th scope="row">
26
- <?php esc_html_e( 'Submit Post Types to Bing:', 'fast-indexing-api' ); ?>
27
- <p class="description"><?php esc_html_e( 'Submit posts from these post types automatically to the Bing URL Submission API when a post is published or edited.', 'fast-indexing-api' ); ?></p>
28
  </th>
29
  <td><?php $this->post_types_checkboxes( 'bing' ); ?></td>
30
  </tr>
7
 
8
  ?>
9
  <div class="wrap rank-math-wrap">
10
+ <h1><?php esc_attr_e( 'IndexNow API Settings', 'fast-indexing-api' ); ?></h1>
11
+ <p class="description"><?php esc_attr_e( 'The IndexNow API allows you to submit URLs to Bing and Yandex for indexing.', 'fast-indexing-api' ); ?></p>
12
  <form enctype="multipart/form-data" method="POST" action="">
13
  <?php wp_nonce_field( 'giapi-save', '_wpnonce', true, true ); ?>
14
  <table class="form-table">
 
 
 
 
 
 
 
 
 
 
15
  <tr valign="top">
16
  <th scope="row">
17
+ <?php esc_html_e( 'Submit Posts IndexNow:', 'fast-indexing-api' ); ?>
18
+ <p class="description"><?php esc_html_e( 'Submit posts from these post types automatically to the IndexNow API when a post is published or edited.', 'fast-indexing-api' ); ?></p>
19
  </th>
20
  <td><?php $this->post_types_checkboxes( 'bing' ); ?></td>
21
  </tr>
views/console.php CHANGED
@@ -10,7 +10,7 @@
10
  <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
11
 
12
  <?php
13
- if ( ! $this->get_setting( 'json_key' ) && ( ! $this->get_setting( 'bing_api_key' ) || ! $this->is_rm_active ) ) {
14
  ?>
15
  <p class="description">
16
  <?php
@@ -18,7 +18,7 @@
18
  sprintf(
19
  /* translators: %s is a link to the plugin settings tab. */
20
  __( 'Please navigate to the %s tab to configure the plugin.', 'fast-indexing-api' ),
21
- '<a href="' . esc_url( admin_url( 'admin.php?page=instant-indexing' ) ) . '">' . __( 'Settings', 'fast-indexing-api' ) . '</a>'
22
  )
23
  );
24
  ?>
@@ -36,14 +36,10 @@
36
  <code><?php esc_html_e( 'RequestsPerMinutePerProject', 'fast-indexing-api' ); ?> = <strong id="giapi-limit-permin"><?php echo absint( $limits['permin'] ); ?></strong> / <?php echo absint( $limits['permin_max'] ); ?></code><br>
37
  <code><?php esc_html_e( 'MetadataRequestsPerMinutePerProject', 'fast-indexing-api' ); ?> = <strong id="giapi-limit-metapermin"><?php echo absint( $limits['metapermin'] ); ?></strong> / <?php echo absint( $limits['metapermin_max'] ); ?></code></p>
38
  <?php } ?>
39
- <?php if ( $this->is_rm_active && $this->get_setting( 'bing_api_key' ) ) { ?>
40
- <p class="" style="line-height: 1.8;"><a href="https://www.bing.com/webmasters/help/submit-urls-to-bing-62f2860a" target="_blank"><strong><?php esc_html_e( 'Bing API Remaining Quota:', 'fast-indexing-api' ); ?></strong></a><br>
41
- <code><?php esc_html_e( 'UrlSubmissionQuota (per day)', 'fast-indexing-api' ); ?> = <strong id="giapi-limit-bing_submitperday"><?php echo absint( $limits['bing_submitperday'] ); ?></strong> / <?php echo absint( $limits['bing_submitperday_max'] ); ?></code></p>
42
- <?php } ?>
43
  </div>
44
 
45
  <form id="instant-indexing" class="wpform" method="post">
46
- <label for="giapi-url"><?php esc_html_e( 'URLs (one per line, up to 100 for Google and 500 for Bing):', 'fast-indexing-api' ); ?></label><br>
47
  <textarea name="url" id="giapi-url" class="regular-text code" rows="5" data-gramm="false"><?php echo esc_textarea( $urls ); ?></textarea>
48
  <br><br>
49
  <label><?php esc_html_e( 'Action:', 'fast-indexing-api' ); ?></label><br>
@@ -52,8 +48,8 @@
52
  <label><input type="radio" name="api_action" value="remove" class="giapi-action" <?php checked( $selected_action, 'remove' ); ?>> <?php wp_kses_post( _e( '<strong>Google</strong>: Remove URL', 'fast-indexing-api' ) ); ?></label><br>
53
  <label><input type="radio" name="api_action" value="getstatus" class="giapi-action" <?php checked( $selected_action, 'getstatus' ); ?>> <?php wp_kses_post( _e( '<strong>Google</strong>: Get URL status', 'fast-indexing-api' ) ); ?></label><br>
54
  <?php } ?>
55
- <?php if ( $this->is_rm_active && $this->get_setting( 'bing_api_key' ) ) { ?>
56
- <label><input type="radio" name="api_action" value="bing_submit" class="giapi-action" <?php checked( $selected_action, 'bing_submit' ); ?>> <?php wp_kses_post( _e( '<strong>Bing</strong>: Submit URL', 'fast-indexing-api' ) ); ?></label><br>
57
  <?php } ?>
58
  <?php wp_nonce_field( 'giapi-console' ); ?>
59
  <input type="submit" id="giapi-submit" class="button button-primary" value="<?php esc_attr_e( 'Send to API', 'fast-indexing-api' ); ?>" disabled="disabled">
10
  <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
11
 
12
  <?php
13
+ if ( ! $this->get_setting( 'json_key' ) ) {
14
  ?>
15
  <p class="description">
16
  <?php
18
  sprintf(
19
  /* translators: %s is a link to the plugin settings tab. */
20
  __( 'Please navigate to the %s tab to configure the plugin.', 'fast-indexing-api' ),
21
+ '<a href="' . esc_url( admin_url( 'admin.php?page=instant-indexing&tab=google_settings' ) ) . '">' . __( 'Settings', 'fast-indexing-api' ) . '</a>'
22
  )
23
  );
24
  ?>
36
  <code><?php esc_html_e( 'RequestsPerMinutePerProject', 'fast-indexing-api' ); ?> = <strong id="giapi-limit-permin"><?php echo absint( $limits['permin'] ); ?></strong> / <?php echo absint( $limits['permin_max'] ); ?></code><br>
37
  <code><?php esc_html_e( 'MetadataRequestsPerMinutePerProject', 'fast-indexing-api' ); ?> = <strong id="giapi-limit-metapermin"><?php echo absint( $limits['metapermin'] ); ?></strong> / <?php echo absint( $limits['metapermin_max'] ); ?></code></p>
38
  <?php } ?>
 
 
 
 
39
  </div>
40
 
41
  <form id="instant-indexing" class="wpform" method="post">
42
+ <label for="giapi-url"><?php esc_html_e( 'URLs (one per line, up to 100 for Google and 10,000 for IndexNow):', 'fast-indexing-api' ); ?></label><br>
43
  <textarea name="url" id="giapi-url" class="regular-text code" rows="5" data-gramm="false"><?php echo esc_textarea( $urls ); ?></textarea>
44
  <br><br>
45
  <label><?php esc_html_e( 'Action:', 'fast-indexing-api' ); ?></label><br>
48
  <label><input type="radio" name="api_action" value="remove" class="giapi-action" <?php checked( $selected_action, 'remove' ); ?>> <?php wp_kses_post( _e( '<strong>Google</strong>: Remove URL', 'fast-indexing-api' ) ); ?></label><br>
49
  <label><input type="radio" name="api_action" value="getstatus" class="giapi-action" <?php checked( $selected_action, 'getstatus' ); ?>> <?php wp_kses_post( _e( '<strong>Google</strong>: Get URL status', 'fast-indexing-api' ) ); ?></label><br>
50
  <?php } ?>
51
+ <?php if ( $this->is_rm_active ) { ?>
52
+ <label><input type="radio" name="api_action" value="bing_submit" class="giapi-action" <?php checked( $selected_action, 'bing_submit' ); ?>> <?php wp_kses_post( _e( '<strong>IndexNow</strong>: Submit URL', 'fast-indexing-api' ) ); ?></label><br>
53
  <?php } ?>
54
  <?php wp_nonce_field( 'giapi-console' ); ?>
55
  <input type="submit" id="giapi-submit" class="button button-primary" value="<?php esc_attr_e( 'Send to API', 'fast-indexing-api' ); ?>" disabled="disabled">
views/google-settings.php CHANGED
@@ -34,7 +34,7 @@
34
  </tr>
35
  <tr valign="top">
36
  <th scope="row">
37
- <?php esc_html_e( 'Submit Post Types to Google:', 'fast-indexing-api' ); ?>
38
  <p class="description"><?php esc_html_e( 'Submit posts from these post types automatically to the Google Instant Indexing API when a post is published, edited, or deleted.', 'fast-indexing-api' ); ?></p>
39
  </th>
40
  <td><?php $this->post_types_checkboxes(); ?></td>
34
  </tr>
35
  <tr valign="top">
36
  <th scope="row">
37
+ <?php esc_html_e( 'Submit Posts to Google:', 'fast-indexing-api' ); ?>
38
  <p class="description"><?php esc_html_e( 'Submit posts from these post types automatically to the Google Instant Indexing API when a post is published, edited, or deleted.', 'fast-indexing-api' ); ?></p>
39
  </th>
40
  <td><?php $this->post_types_checkboxes(); ?></td>