Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Register all WP postmeta keys using the [CF Revision Manager](https://github.com/crowdfavorite/wp-revision-manager)
<?php
global $wpdb;
$keys = $wpdb->get_col("
SELECT DISTINCT meta_key
FROM $wpdb->postmeta
");
foreach ($keys as $key) {
cfr_register_metadata($key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.