Before Tasty Pins version 2.2, the plugin used block attributes for settings.
In version 2.2, we changed the block settings and introduced a migration action to update old block attributes in current posts.
In version 2.2.1, we added a filter for post content that runs after migration and before the post is updated. This filter includes an additional parameter for the migrating post object.
Here’s an example filter to add post meta if the post content contains “WP Tasty”:
To perform actions during migration, add the ‘tasty_pins_old_attributes_migration_content’ filter to your site with WPCode.