status instanceof WPSEO_Import_Status ) { $message = $import->status->get_msg(); } /** * Allow customization of import/export message. * * @api string $msg The message. */ $msg = apply_filters( 'wpseo_import_message', $message ); if ( ! empty( $msg ) ) { $status = 'error'; if ( $import->status->status ) { $status = 'updated'; } echo '

', esc_html( $msg ), '

'; } } $tabs = array( 'wpseo-import' => array( 'label' => __( 'Import settings', 'wordpress-seo' ), 'screencast_video_url' => WPSEO_Shortlinker::get( 'https://yoa.st/screencast-tools-import-export' ), ), 'wpseo-export' => array( 'label' => __( 'Export settings', 'wordpress-seo' ), 'screencast_video_url' => WPSEO_Shortlinker::get( 'https://yoa.st/screencast-tools-import-export' ), ), 'import-seo' => array( 'label' => __( 'Import from other SEO plugins', 'wordpress-seo' ), 'screencast_video_url' => WPSEO_Shortlinker::get( 'https://yoa.st/screencast-tools-import-export' ), ), ); ?>

$tab ) { if ( ! empty( $tab['screencast_video_url'] ) ) { $tab_video_url = $tab['screencast_video_url']; $helpcenter_tab = new WPSEO_Option_Tab( $identifier, $tab['label'], array( 'video_url' => $tab['screencast_video_url'] ) ); } $helpcenter_tabs->add_tab( $helpcenter_tab ); } $helpcenter = new WPSEO_Help_Center( '', $helpcenter_tabs, WPSEO_Utils::is_yoast_seo_premium() ); $helpcenter->localize_data(); $helpcenter->mount(); foreach ( $tabs as $identifier => $tab ) { printf( '
', esc_attr( $identifier ) ); require_once WPSEO_PATH . 'admin/views/tabs/tool/' . $identifier . '.php'; echo '
'; } /** * Allow adding a custom import tab */ do_action( 'wpseo_import_tab_content' );