datetime field missing when use add_filter
-
I have 3 fields with type datetime, and 1 of them has “clone” attribute.
1 screenshot – https://image.ibb.co/dmr6aq/1.png – everything is ok.
But when I just added code from this page https://docs.metabox.io/using-two-date-formats/ to my function.php (with my field ID)
add_filter( 'rwmb_ID_field_meta', function( $value ) { return $value ? date( 'd F, Y', strtotime( $value ) ) : ''; } );
the clone datetime field is missing (last 2 fields work fine), only button left – https://image.ibb.co/kaZRaq/2.png And of course the button is not working, because there are no code of input button on page source – https://image.ibb.co/hVLzvq/3.png
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘datetime field missing when use add_filter’ is closed to new replies.