• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WPSEO_Import_Settings::import_options() – Imports the options if found.

You appear to be a bot. Output may be restricted

Description

Imports the options if found.

Usage

WPSEO_Import_Settings::import_options( $options );

Parameters

$options
( array ) required – The options parsed from the provided settings.

Returns

void

Source

File name: wordpress-seo/admin/import/class-import-settings.php


Lines:

1 to 16 of 16
  protected function import_options( $options ) {
    if ( isset( $options['wpseo']['version'] ) && $options['wpseo']['version'] !== '' ) {
      $this->old_wpseo_version = $options['wpseo']['version'];
    }

    foreach ( $options as $name => $option_group ) {
      $this->parse_option_group( $name, $option_group, $options );
    }

    $this->status->set_msg( __( 'Settings successfully imported.', 'wordpress-seo' ) );
    $this->status->set_status( true );

    // Reset the cached option values.
    WPSEO_Options::clear_cache();
  }
 

 View on GitHub View on Trac

Published: 27th November 2019 | Last updated: 7th February 2020

Primary Sidebar

Information

Function name: WPSEO_Import_Settings::import_options
Class ref: WPSEO_Import_Settings
Plugin ref: Yoast SEO
Version: 15.4
Sourcefile: admin/import/class-import-settings.php
File ref: admin/import/class-import-settings.php
Deprecated?: No
API Letters: I,O,S,W

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wordpress-seo.wp-a2z.org
© Copyright Yoast SEO a2z 2017-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites