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.
Use this filter to to work around a Snuffleupagus security module rule that prevents certain chmod values.
Usage
add_filter('frm_protected_file_readonly_permission', 'protected_file_readonly_permission');
Parameters
- None
Examples
Set protected files to read-only
Use this code example to filter the readonly chmod permission value for protected files.
add_filter('frm_protected_file_readonly_permission', 'protected_file_readonly_permission');
function protected_file_readonly_permission() {
return 0644;
}