Closed jazzsequence closed 3 years ago
Are you thinking the migration script would run on wp altis migrate
by default but you could run it individually on wp altis migrate seo
?
I was thinking wp altis migrate
can just be a catch-all for everything you'd want to when upgrading from one major version to another so a subcommand isn't strictly necessary.
I was mostly thinking of just running it on wp altis migrate seo
but also hooking it back to wp altis migrate
makes sense, too.
Migrate any existing WP SEO data into Yoast SEO. This includes both global settings and per-post meta.
Acceptance Criteria:
wp altis migrate
(e.g.wp altis migrate seo
)Dev Notes
Both WP SEO and Yoast SEO store that information in post meta, and each have comparable meta keys for that data. Yoast uses a formula for the SEO title (e.g.
%%title%% %%page%% %%sep%% %%sitename%%
). We could either default to this or migrate existing data in the WP SEO_meta_title
field to_yoast_wpseo_title
, which is the Yoast equivalent and only added if the title was manually changed from the default pattern.Probably what makes the most sense is to migrate the meta data over if it exists -- WP SEO also has default patterns which would get migrated over as part of the migration process, so the most important information here is the meta descriptions and SEO keywords, which would be unique for each post.