Description
This filter is executed when creating the Post Image Description field and can be used to modify the "Description" label
Usage
Applies to all forms
<?php
add_filter("gform_postimage_description", "change_postimage_description", 10, 2);
?>
Applies to a specific form. In this case, form Id 5
<?php
add_filter("gform_postimage_description_5", "change_postimage_description", 10, 2);
?>
Parameters
$label
- (string) The label to be filtered.
$form_id
- (int) The current form's id.
Examples
This example changes the default Post Image Description label;
<?php
add_filter("gform_postimage_description", "change_postimage_description", 10, 2);
function change_postimage_description($label, $form_id){
return "Image Description";
}
?>
Source Code
This filter is located in common.php