Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This filter allows you to change the Formidable Forms Pro default settings.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter( 'frm_pro_default_form_settings', 'turn_on_file_protection_by_default' );
Parameters
- $defaults
Examples
Turn on file protection by default for new forms
add_filter( 'frm_pro_default_form_settings', 'turn_on_file_protection_by_default' );
function turn_on_file_protection_by_default( $defaults ) {
$defaults['protect_files'] = 1;
return $defaults;
}