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 changing the HTML of a row in Likert when displaying the Likert value.
Usage
add_filter('frm_likert_html', 'my_custom_function', 10, 2);
Parameters
- $html (string): The row HTML. %1$s and %2$s will be replaced with row name and row value.
Examples
Use table to display the Likert field value
add_filter('frm_likert_html', 'display_likert_html', 10, 2);
function display_likert_html( $html ) {
return '%1$s: %2$s ';
}