Remove custom fields
-
Hi and thanks for the great plugin.
If anyone needs to remove the custom fields from the “all” option use this in functions.php:
/** * Remove the custom fields from inserted post. * * @param $key */ function remove_custom_fields($key) { $key = ''; return $key; } add_filter( 'the_meta_key', 'remove_custom_fields' );
- The topic ‘Remove custom fields’ is closed to new replies.