PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.3
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.3
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 / tool / wpseo-export.php

wpseo-export.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.3, at admin/views/tabs/tool/wpseo-export.php

39 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
8 if ( ! defined( 'WPSEO_VERSION' ) ) {
9 header( 'Status: 403 Forbidden' );
10 header( 'HTTP/1.1 403 Forbidden' );
11 exit();
12 }
13
14 /* translators: %1$s expands to Yoast SEO */
15 $submit_button_value = sprintf( __( 'Export your %1$s settings', 'wordpress-seo' ), 'Yoast SEO' );
16
17 if ( filter_input( INPUT_POST, 'do_export' ) ) {
18 $export = new WPSEO_Export();
19 $export->export();
20 return;
21 }
22
23 $wpseo_export_phrase = sprintf(
24 /* translators: %1$s expands to Yoast SEO */
25 __( 'Export your %1$s settings here, to copy them on another site.', 'wordpress-seo' ),
26 'Yoast SEO'
27 );
28 ?>
29
30 <p><?php echo esc_html( $wpseo_export_phrase ); ?></p>
31 <form
32 action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#wpseo-export' ) ); ?>"
33 method="post"
34 accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
35 <?php wp_nonce_field( WPSEO_Export::NONCE_ACTION ); ?>
36 <input type="hidden" name="do_export" value="1" />
37 <button type="submit" class="button button-primary" id="export-button"><?php echo esc_html( $submit_button_value ); ?></button>
38 </form>
39