[ Root System Explorer ]
Location:
Root
/
home
/
svaxkys
/
www
/
AcmaCulot
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
app
/
Common
/
ImportExport
/
YoastSeo
+ Folder
+ File
Upload
Editing: YoastSeo.php
<?php namespace AIOSEO\Plugin\Common\ImportExport\YoastSeo; // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } use AIOSEO\Plugin\Common\ImportExport; class YoastSeo extends ImportExport\Importer { /** * A list of plugins to look for to import. * * @since 4.0.0 * * @var array */ public $plugins = [ [ 'name' => 'Yoast SEO', 'version' => '14.0', 'basename' => 'wordpress-seo/wp-seo.php', 'slug' => 'yoast-seo' ], [ 'name' => 'Yoast SEO Premium', 'version' => '14.0', 'basename' => 'wordpress-seo-premium/wp-seo-premium.php', 'slug' => 'yoast-seo-premium' ], ]; /** * The post action name. * * @since 4.0.0 * * @var string */ public $postActionName = 'aioseo_import_post_meta_yoast_seo'; /** * The user action name. * * @since 4.1.4 * * @var string */ public $userActionName = 'aioseo_import_user_meta_yoast_seo'; /** * The post action name. * * @since 4.0.0 * * @param ImportExport $importer The main importer class. */ public function __construct( $importer ) { $this->helpers = new Helpers(); $this->postMeta = new PostMeta(); $this->userMeta = new UserMeta(); add_action( $this->postActionName, [ $this->postMeta, 'importPostMeta' ] ); add_action( $this->userActionName, [ $this->userMeta, 'importUserMeta' ] ); $plugins = $this->plugins; foreach ( $plugins as $key => $plugin ) { $plugins[ $key ]['class'] = $this; } $importer->addPlugins( $plugins ); } /** * Imports the settings. * * @since 4.0.0 * * @return void */ protected function importSettings() { new GeneralSettings(); new SearchAppearance(); new SocialMeta(); $this->userMeta->scheduleImport(); } }
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 GeneralSettings.php
FILE
Ren
[EDIT]
DEL
📄 Helpers.php
FILE
Ren
[EDIT]
DEL
📄 PostMeta.php
FILE
Ren
[EDIT]
DEL
📄 SearchAppearance.php
FILE
Ren
[EDIT]
DEL
📄 SocialMeta.php
FILE
Ren
[EDIT]
DEL
📄 UserMeta.php
FILE
Ren
[EDIT]
DEL
📄 YoastSeo.php
FILE
Ren
[EDIT]
DEL