Unset some data from being sync
-
I want to unset some data from the synced data.
I found the filterspectrom_sync_api_push_contentand I did somthing like this:function shlomi_test_wpsc($data) { $post_id = $data['post_id']; if (isset($data['thumbnail'])) { $data['thumbnail'] = ''; } if(isset($data['post_meta']['_thumbnail_id'])) { unset($data['post_meta']['_thumbnail_id']); } unset($data['post_data']['post_content']); unset($data['post_meta']['important']); } add_filter('spectrom_sync_api_push_content', 'shlomi_test_wpsc', 2);So,
['post_meta']['important']is did not sync as I expected, and this is great, but the post content is removed form the target site, and the post thumbnail is still persist to be sync.Thanks for your help,
Shlomi
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Unset some data from being sync’ is closed to new replies.