How do I increase the upload size only when editing special pages?
I think you are on the right track with your idea of checking if the right page is being viewed within the callback attached to the upload_size_limit hook. This code demonstrates changing the upload size if one of the special pages is being viewed, and returning the standard max upload size otherwise: function wpse239631_change_upload_size( $u_bytes, … Read more