'affiliatex/notice', 'attribute_name' => 'layoutStyle', 'old_value' => 'layout-type-3', 'new_value' => 'layout-type-2', ), ); MigrationHelper::migrate_gutenberg_posts_block_attributes( $posts, $migration_configs ); } /** * Migration for Elementor widgets. */ private static function migrate_elementor() { if ( ! class_exists( '\Elementor\Plugin' ) ) { return; } $meta_query = array( array( 'key' => '_elementor_data', 'value' => 'affiliatex-notice', 'compare' => 'LIKE', ), ); $posts = MigrationHelper::get_elementor_posts( $meta_query ); $migration_configs = array( array( 'widget_type' => 'affiliatex-notice', 'attribute_name' => 'layoutStyle', 'old_value' => 'layout-type-3', 'new_value' => 'layout-type-2', ), ); MigrationHelper::migrate_elementor_posts_widget_attributes( $posts, $migration_configs ); } }