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


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 filter can be used to pass variables to the Helpful javascript, or manipulate existing variables from Helpful.

add_filter( 'helpful_frontend_ajax_vars', function( $vars ) {
    $vars['my_var'] = 'some nice content';
    return $vars;

In this example, we pass the javascript variable my_var to the frontend so that Helpful Script can use it. Basically, however, the filter is used to remove individual elements.

Was this post helpful?