PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 27.7
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v27.7
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / views / tabs / network / crawl-settings.php

crawl-settings.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 27.7, at admin/views/tabs/network/crawl-settings.php

51 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSEO plugin file.
4 *
5 * @package WPSEO\Admin\Views
6 *
7 * @uses Yoast_Form $yform Form object.
8 */
9
10 if ( ! defined( 'WPSEO_VERSION' ) ) {
11 header( 'Status: 403 Forbidden' );
12 header( 'HTTP/1.1 403 Forbidden' );
13 exit();
14 }
15
16 $feature_toggles = Yoast_Feature_Toggles::instance()->get_all();
17
18 ?>
19 <h2><?php esc_html_e( 'Crawl settings', 'wordpress-seo' ); ?></h2>
20 <div class="yoast-measure">
21 <?php
22 printf(
23 /* translators: %s expands to Yoast SEO */
24 esc_html__( 'This tab allows you to selectively disable %s features for all sites in the network. By default all features are enabled, which allows site admins to choose for themselves if they want to toggle a feature on or off for their site. When you disable a feature here, site admins will not be able to use that feature at all.', 'wordpress-seo' ),
25 'Yoast SEO',
26 );
27
28 echo '<p style="margin: 0.5em 0 1em;">';
29 printf(
30 /* translators: %1$s opens the link to the Yoast.com article about Crawl settings, %2$s closes the link, */
31 esc_html__( '%1$sLearn more about crawl settings.%2$s', 'wordpress-seo' ),
32 '<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/crawl-settings' ) ) . '" target="_blank" rel="noopener noreferrer">',
33 '</a>',
34 );
35 echo '</p>';
36
37 /**
38 * Fires when displaying the crawl cleanup network tab.
39 *
40 * @param Yoast_Form $yform The yoast form object.
41 */
42 do_action( 'wpseo_settings_tab_crawl_cleanup_network', $yform );
43 ?>
44 </div>
45 <?php
46 /*
47 * Required to prevent our settings framework from saving the default because the field
48 * isn't explicitly set when saving the Dashboard page.
49 */
50 $yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
51