Connection dropped due to file size

It sounds like you are attempting to push too much data at one time. GoDaddy may be terminating the connection because of a size limit per request or the upload is taking longer than they allow (because it is so large.) In either case it is a sign the amount of data is too large. … Read more

Admin hook after editing an image?

Unless I’ve missed something in the flow of this, It seems the mentioned WPSE answer is correct. The filter hook referenced, wp_save_image_editor_file, is applied in the wp_save_image_file() function when dealing with an instance of WP_Image_Editor class; giving access to $filename (trac link for below): * @param mixed $override Value to return instead of saving. Default … Read more

wordpress doesnt add media.css file

/css/media.min.css?ver=4.8.1 is not indicative of a “min version”. The filename of this CSS file is LITERALLY: ‘media.min.css’. (Additionally the file is versioned with the ver parameter set to 4.8.1). So atetmpting to enqueue: wp_enqueue_style(‘media’, get_template_directory_uri().’/css/media.css’); Will certainly fail, and should in fact be: wp_enqueue_style(‘media’, get_template_directory_uri().’/css/media.min.css’);

Get the Playlist embedded in Post/Page content

The get_media_embedded_in_content() uses a regex to match the input tags, but the HTML for playlists is not made from a single tag, instead it’s constructed with tags like <div>, <script>, <noscript>, <ol>, <li>. Recently I posted an answer to get post playlist like get_post_gallery() that you can check out, to see if it helps. It … Read more