RC2: Dynamic content Custom Meta pulled from deactivated and deleted plugin

Hi,

I had X Email Forms on the site, but it is long gone. Still, a lot of its Custom Metas are being pulled from the Database.

image

Thanks!

That select is populated by doing this:

global $wpdb;
$results = $wpdb->get_results( "SELECT DISTINCT $wpdb->postmeta.meta_key FROM $wpdb->postmeta", ARRAY_N );

It’s a really broad stroke approach that just finds a unique list of meta keys in the posts_meta table. Unfortunately it doesn’t have a way of knowing how those keys got there.

You could reactivate the plugin and delete all the forms and that should clear them out.

1 Like