helpful/get_option/{option_name}

This filter can be used to manipulate options before output. Helpful has quite a few options now, which is why you need to pick the option in the code that is important to you.

add_filter('helpful/get_option/{option_name}', function($old_value) {
    $new_value = 'My new value!'
    return $new_value;
});

Some of the available option names can be found here:

Tab: Details

These following option names are available for you:

$details = [
    'helpful_credits',
    'helpful_hide_in_content',
    'helpful_post_types',
    'helpful_exists_hide',
    'helpful_count_hide',
    'helpful_widget',
    'helpful_widget_amount',
    'helpful_widget_pro',
    'helpful_widget_contra',
    'helpful_widget_pro_recent',
    'helpful_widget_contra_recent',
    'helpful_only_once',
    'helpful_percentages',
    'helpful_form_status_pro',
    'helpful_form_email_pro',
    'helpful_form_status_contra',
    'helpful_form_email_contra',
    'helpful_metabox',
    'helpful_widget_hide_publication',
    'helpful_hide_admin_columns',
    'helpful_shrink_admin_columns',
    'helpful_feedback_widget',
    'helpful_feedback_disabled',
    'helpful_wordpress_user',
    'helpful_ip_user',
];

Source: https://github.com/pixelbart/helpful/blob/master/core/tabs/class-details.php#L61

Tab: Texts

These following option names are available for you:

$texts = [
    'helpful_heading',
    'helpful_content',
    'helpful_pro',
    'helpful_pro_disabled',
    'helpful_exists',
    'helpful_contra',
    'helpful_contra_disabled',
    'helpful_column_pro',
    'helpful_column_contra',
    'helpful_column_feedback',
    'helpful_after_pro',
    'helpful_after_contra',
    'helpful_after_fallback',
];

Source: https://github.com/pixelbart/helpful/blob/master/core/tabs/class-texts.php#L60

Tab: Feedback

These following option names are available for you:

$feedback = [
    'helpful_feedback_widget',
    'helpful_feedback_after_pro',
    'helpful_feedback_after_contra',
    'helpful_feedback_message_pro',
    'helpful_feedback_message_contra',
    'helpful_feedback_messages_table',
    'helpful_feedback_widget_overview',
    'helpful_feedback_name',
    'helpful_feedback_email',
    'helpful_feedback_cancel',
    'helpful_feedback_label_message',
    'helpful_feedback_label_name',
    'helpful_feedback_label_email',
    'helpful_feedback_label_submit',
    'helpful_feedback_label_cancel',
    'helpful_feedback_gravatar',
    'helpful_feedback_message_spam',
    'helpful_feedback_after_vote',
    'helpful_feedback_message_voted',
    'helpful_feedback_amount',
    'helpful_feedback_send_email',
    'helpful_feedback_receivers',
    'helpful_feedback_subject',
    'helpful_feedback_email_content',
    'helpful_feedback_send_email_voter',
    'helpful_feedback_subject_voter',
    'helpful_feedback_email_content_voter',
];

Source: https://github.com/pixelbart/helpful/blob/master/core/tabs/class-feedback.php#L65

Tab: System

These following option names are available for you:

$system = [
    'helpful_uninstall',
    'helpful_timezone',
    'helpful_multiple',
    'helpful_notes',
    'helpful_plugin_first',
    'helpful_classic_editor',
    'helpful_caching',
    'helpful_caching_time',
    'helpful_export_separator',
    'helpful_uninstall_feedback',
    'helpful_sessions_false',
    'helpful_user_random',
    'helpful_disable_frontend_nonce',
    'helpful_disable_feedback_nonce',
];

Source: https://github.com/pixelbart/helpful/blob/master/core/tabs/class-system.php#L70

Was this post helpful?

Top