Description
This is a dynamic filter to allow manipulation of the data when DataSync properties are set.
General Keys
- primary_id
- is_accelerated
- integrations
Post Type Keys
- post_data
- post_meta
- taxonomies
- featured_image
- attachment
User Keys
- user_data
- user_meta
WooCommerce Keys
- gallery_images
- attributes
- variations
Usage
apply_filters( 'wp_data_sync_set_property_{$key}', $values );
Parameters
$values | array | Array of property values |
Code Example
add_filter( 'wp_data_sync_set_property_{$key}', function( $values ) {
//Do cool stuff here!!
return $values;
), 10, 1 );
Contact us if you need a code example for this hook. We are happy to review your request.