Part of WP-1575 Added general form alter function for add_content_modal editing