Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Getting Started Shortcodes

Shortcodes

You can also output Helpful using shortcodes on your page. This is useful if you only want to show Helpful in certain places. The basic shortcode looks like this:

[helpful]

You can also change individual parameters. Actually, you can change almost anything, but this could break Helpful, here’s an example of how to change the heading:

[helpful heading="My new heading!"]

Default Values

$defaults = [
    'heading' => string,
    'content' => string,
    'button_pro' => string,
    'button_contra' => string,
    'counter' => bool,
    'count_pro' => Helpful_Helper_Stats::getPro($post_id),
    'count_pro_percent' => Helpful_Helper_Stats::getPro($post_id, true),
    'count_contra' => Helpful_Helper_Stats::getContra($post_id),
    'count_contra_percent' => Helpful_Helper_Stats::getContra($post_id, true),
    'credits' => bool,
    'credits_html' => string,
    'exists' => int (1/0),
    'exists_text' => string,
    'post_id' => integer,
];