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 hook to filter the maximum days for an access code to be expired.
Usage
add_filter('frm_pdfs_access_code_max_days', 'filter_access_code_max_days');
Parameters
- $number_of_days (int): The number of days.
Examples
Basic Example
add_filter('frm_pdfs_access_code_max_days', 'filter_access_code_max_days');
function filter_access_code_max_days() {
return 7; // Replace 7 with the number of days.
}