at path:
ROOT
/
wp-content
/
plugins
/
wordpress-seo
/
admin
/
class-export.php
run:
R
W
Run
ajax
DIR
2026-04-15 05:43:03
R
W
Run
capabilities
DIR
2026-04-15 05:43:03
R
W
Run
endpoints
DIR
2026-04-15 05:43:04
R
W
Run
exceptions
DIR
2026-04-15 05:43:04
R
W
Run
filters
DIR
2026-04-15 05:43:04
R
W
Run
formatter
DIR
2026-04-15 05:43:04
R
W
Run
google_search_console
DIR
2026-04-15 05:43:04
R
W
Run
import
DIR
2026-04-15 05:43:04
R
W
Run
listeners
DIR
2026-04-15 05:43:04
R
W
Run
menu
DIR
2026-04-15 05:43:04
R
W
Run
metabox
DIR
2026-04-15 05:43:04
R
W
Run
notifiers
DIR
2026-04-15 05:43:04
R
W
Run
pages
DIR
2026-04-15 05:43:04
R
W
Run
roles
DIR
2026-04-15 05:43:04
R
W
Run
services
DIR
2026-04-15 05:43:04
R
W
Run
statistics
DIR
2026-04-15 05:43:04
R
W
Run
taxonomy
DIR
2026-04-15 05:43:04
R
W
Run
tracking
DIR
2026-04-15 05:43:04
R
W
Run
views
DIR
2026-04-15 05:43:04
R
W
Run
watchers
DIR
2026-04-15 05:43:04
R
W
Run
admin-settings-changed-listener.php
2.39 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
ajax.php
11.16 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-asset-analysis-worker-location.php
1.81 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-asset-dev-server-location.php
1.61 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-asset-location.php
488 By
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-asset-manager.php
20.57 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-asset-seo-location.php
2.08 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-editor-specific-replace-vars.php
6.35 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-gutenberg-compatibility-notification.php
2.55 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-help-panel.php
2.7 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-init.php
10.72 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-recommended-replace-vars.php
5.98 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-user-profile.php
3.06 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin-utils.php
2.15 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-admin.php
12.73 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-asset.php
4.3 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-bulk-description-editor-list-table.php
2.05 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-bulk-editor-list-table.php
29.43 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-bulk-title-editor-list-table.php
2.23 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-collector.php
1005 By
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-config.php
4.93 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-database-proxy.php
7.51 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-export.php
3.46 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-expose-shortlinks.php
7.08 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-gutenberg-compatibility.php
2.47 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-meta-columns.php
27.3 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-my-yoast-proxy.php
6.14 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-option-tab.php
2.21 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-option-tabs-formatter.php
2.84 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-option-tabs.php
2.26 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-paper-presenter.php
3.52 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-plugin-availability.php
10.06 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-plugin-conflict.php
4.04 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-premium-popup.php
2.81 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-premium-upsell-admin-block.php
7.83 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-primary-term-admin.php
7.32 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-product-upsell-notice.php
5.75 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-remote-request.php
3.13 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-schema-person-upgrade-notification.php
2.23 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-suggested-plugins.php
4.33 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-wincher-dashboard-widget.php
3.53 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-columns.php
3.52 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-dashboard-widget.php
3.93 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-form.php
35.73 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-input-validation.php
7.21 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-network-admin.php
9.97 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-network-settings-api.php
4.14 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-notification-center.php
26.02 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-notification.php
10.1 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-notifications.php
7.63 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
class-yoast-plugin-conflict.php
10.29 KB
2026-04-15 05:43:03
R
W
Run
Delete
Rename
index.php
38 By
2026-04-15 05:43:04
R
W
Run
Delete
Rename
interface-collection.php
257 By
2026-04-15 05:43:04
R
W
Run
Delete
Rename
interface-installable.php
254 By
2026-04-15 05:43:04
R
W
Run
Delete
Rename
error_log
up
📄
class-export.php
Save
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Export */ /** * Class WPSEO_Export. * * Class with functionality to export the WP SEO settings. */ class WPSEO_Export { /** * Holds the nonce action. * * @var string */ public const NONCE_ACTION = 'wpseo_export'; /** * Holds the export data. * * @var string */ private $export = ''; /** * Holds whether the export was a success. * * @var bool */ public $success; /** * Handles the export request. * * @return void */ public function export() { check_admin_referer( self::NONCE_ACTION ); $this->export_settings(); $this->output(); } /** * Outputs the export. * * @return void */ public function output() { if ( ! WPSEO_Capability_Utils::current_user_can( 'wpseo_manage_options' ) ) { esc_html_e( 'You do not have the required rights to export settings.', 'wordpress-seo' ); return; } echo '<p id="wpseo-settings-export-desc">'; printf( /* translators: %1$s expands to Import settings */ esc_html__( 'Copy all these settings to another site\'s %1$s tab and click "%1$s" there.', 'wordpress-seo', ), esc_html__( 'Import settings', 'wordpress-seo', ), ); echo '</p>'; /* translators: %1$s expands to Yoast SEO */ echo '<label for="wpseo-settings-export" class="yoast-inline-label">' . sprintf( __( 'Your %1$s settings:', 'wordpress-seo' ), 'Yoast SEO' ) . '</label><br />'; echo '<textarea id="wpseo-settings-export" rows="20" cols="100" aria-describedby="wpseo-settings-export-desc">' . esc_textarea( $this->export ) . '</textarea>'; } /** * Exports the current site's WP SEO settings. * * @return void */ private function export_settings() { $this->export_header(); foreach ( WPSEO_Options::get_option_names() as $opt_group ) { $this->write_opt_group( $opt_group ); } } /** * Writes the header of the export. * * @return void */ private function export_header() { $header = sprintf( /* translators: %1$s expands to Yoast SEO, %2$s expands to Yoast.com */ esc_html__( 'These are settings for the %1$s plugin by %2$s', 'wordpress-seo' ), 'Yoast SEO', 'Yoast.com', ); $this->write_line( '; ' . $header ); } /** * Writes a line to the export. * * @param string $line Line string. * @param bool $newline_first Boolean flag whether to prepend with new line. * * @return void */ private function write_line( $line, $newline_first = false ) { if ( $newline_first ) { $this->export .= PHP_EOL; } $this->export .= $line . PHP_EOL; } /** * Writes an entire option group to the export. * * @param string $opt_group Option group name. * * @return void */ private function write_opt_group( $opt_group ) { $this->write_line( '[' . $opt_group . ']', true ); $options = get_option( $opt_group ); if ( ! is_array( $options ) ) { return; } foreach ( $options as $key => $elem ) { if ( is_array( $elem ) ) { $count = count( $elem ); for ( $i = 0; $i < $count; $i++ ) { $elem_check = ( $elem[ $i ] ?? null ); $this->write_setting( $key . '[]', $elem_check ); } } else { $this->write_setting( $key, $elem ); } } } /** * Writes a settings line to the export. * * @param string $key Key string. * @param string $val Value string. * * @return void */ private function write_setting( $key, $val ) { if ( is_string( $val ) ) { $val = '"' . $val . '"'; } $this->write_line( $key . ' = ' . $val ); } }