ocean_ custom fields should be filtered.
-
I had to write my own function to mask all the ocean_ prefixed custom fields appearing in the editor.
function ocean_protected_meta($protected, $meta_key) { return substr($meta_key,0,6) == 'ocean_' ? true : $protected; } //along with the registration in the ocean/functions.php on line 79. add_filter( 'is_protected_meta', 'ocean_protected_meta', 10, 2);
It’s not right that I had to do that. It’s annoying, and it will affect updates from Ocean.
Please, OceanWP devs – fix it.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘ocean_ custom fields should be filtered.’ is closed to new replies.