Forked from ForGravity/fg_entryautomation_maximum_attachment_size.php
Created
August 15, 2019 23:54
-
-
Save travislopes/ea4d44438a652ebdf66d6fde431753d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'fg_entryautomation_maximum_attachment_size', 'increase_attachment_size', 10, 4 ); | |
function increase_attachment_size( $maximum_file_size, $settings, $form, $file_name ) { | |
return 10485760; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment