function jwplayer_media_attachment_fields_to_edit($form_fields, $media) { if (in_array($media->post_mime_type, json_decode(JWPLAYER_MEDIA_MIME_TYPES), true)) { $form_fields['jwplayer_media_sync'] = array('label' => 'JW Player', 'input' => 'html', 'html' => jwplayer_media_sync_form_html($media)); } return $form_fields; }
function jwplayer_media_attachment_fields_to_edit($form_fields, $media) { if (in_array($media->post_mime_type, unserialize(JWPLAYER_MEDIA_MIME_TYPES))) { $form_fields["jwplayer_media_sync"] = array("label" => "JW Player", "input" => "html", "html" => jwplayer_media_sync_form_html($media)); // $form_fields["jwplayer_media_migrate"] = array ( // "label" => "", // "input" => "html", // "html" => jwplayer_media_migrate_html( $media ) // ); } return $form_fields; }