PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.2
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.2
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 / social / twitterbox.php

twitterbox.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.2, at admin/views/tabs/social/twitterbox.php

35 lines 1.1 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 * @uses array WPSEO_Option_Social::$twitter_card_types
9 */
10
11 if ( ! defined( 'WPSEO_VERSION' ) ) {
12 header( 'Status: 403 Forbidden' );
13 header( 'HTTP/1.1 403 Forbidden' );
14 exit();
15 }
16
17 echo '<h2>' . esc_html__( 'Twitter settings', 'wordpress-seo' ) . '</h2>';
18
19 printf(
20 '<p>%s</p>',
21 esc_html__( 'Twitter uses Open Graph metadata just like Facebook, so be sure to keep the "Add Open Graph meta data" setting on the Facebook tab enabled if you want to optimize your site for Twitter.', 'wordpress-seo' )
22 );
23
24 $yform->light_switch( 'twitter', __( 'Add Twitter card meta data', 'wordpress-seo' ) );
25
26 echo '<p>';
27 esc_html_e( 'Enable this feature if you want Twitter to display a preview with images and a text excerpt when a link to your site is shared.', 'wordpress-seo' );
28 echo '</p>';
29
30 echo '<br />';
31
32 $yform->select( 'twitter_card_type', __( 'The default card type to use', 'wordpress-seo' ), WPSEO_Option_Social::$twitter_card_types );
33
34 do_action( 'wpseo_admin_twitter_section' );
35