1. Home
  2. Knowledge Base
  3. Tasty Pins
  4. Customizing Tasty Pins
  5. Filter: Change Post Content During Attributes Migration

Filter: Change Post Content During Attributes Migration

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.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support