wpLovr white logo

Add/Remove id of 'hello' on element to control rendering on the front end.

Hello

1
2
3
4
5
6
7
8
add_filter( 'elementor/frontend/widget/should_render', function( $bool, $element ){
    $settings = $element->get_settings();
    if( 'hello' === $settings['_element_id'] ){
        return false;
    } else {
        return true;
    }
}, 10, 3);