Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Filters helpful_feedback_fields

helpful_feedback_fields

Help: If you do not know how to execute or save your own PHP code, you can find help here: How to execute PHP code on your WordPress website

This allows you to add your own settings or options to the feedback options of Helpful. Note that you need to add the HTML for the fields.

/**
 * Add custom field to feedback options.
 *
 * @param array $fields default fields.
 * @return array
 */
function custom_function( $fields ) {
  $fields[] = 'custom_field';
  return $fields;
}

add_filter( 'helpful_feedback_fields', 'custom_function' );

Further actions:

  • add_action( ‘helpful_feedback_settings_before’ );
  • add_action( ‘helpful_feedback_settings_after’ );

Was this post helpful?