Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Filter to add meta fields to synchronisation #78

Closed
coenve opened this issue Mar 5, 2018 · 1 comment
Closed

Feature Request: Filter to add meta fields to synchronisation #78

coenve opened this issue Mar 5, 2018 · 1 comment

Comments

@coenve
Copy link

coenve commented Mar 5, 2018

Hi Guys,

Is it possible to create a custom action/filter which allows us to add/edit meta fields of articles to the synchronisation?

The default action now is to synchronize all visible metafields, but not the ones that are invisible (starting with a _)

For example we us _yoast_wpseo_primary_category to create listings on our website and that meta field is by default not synchronized. Which I totally understand, but it would be nice to have a hook so I can add it to the synchronisation.

@coenve
Copy link
Author

coenve commented Mar 9, 2018

Found out that all meta is being synced. Problem was something else.

I did however figured out how to blacklist certain meta fields from syncing. Maybe something to put in the readme.

add_filter( 'dt_blacklisted_meta', function($blacklisted) {
$blacklisted[] = 'views';
return $blacklisted;
});

@coenve coenve closed this as completed Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant