Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created January 18, 2022 00:31
Embed
What would you like to do?
Disable auto remove empty meta fields on listings when using WP Job Manager Field Editor
<?php
// Remove the line below if you want to keep this handling on the frontend
add_filter( 'field_editor_save_custom_fields_remove_empty_value_fields', '__return_false' );
// Remove the line below if you want to keep this handling in the admin area
add_filter( 'field_editor_save_admin_custom_fields_remove_empty_value_fields', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment