Hi folks!
Good plugin, but I found a slight bug I think.
Currently, you can add your own custom field types. But when trying to enqueue some custom CSS using the ‘meta_box_css’ key in the array returned by the wpcf_fields_FIELDNAMEGOESHERE function, it doesn’t work at all.
I checked the normal field types; most of them don’t use that option, but for the ones that are, it isn’t working either.
I tracked the bug down to:
embedded/classes/fields.php:176
embedded/classes/field.php:657
…where a hook is mistyped.
Both those lines currently read:
add_action( ‘admin_header’, $data_script[‘inline’] );
…when they should read:
add_action( ‘admin_head’, $data_script[‘inline’] );
If you change those lines, the bug is fixed; css appears again as expected.
Not sure how to submit this as a patch, but maybe the above is enough details?
https://ww.wp.xz.cn/plugins/types/