Hide Oxygen Composite Elements

if you do not use it. Keep add elements sidebar clean.

Left Before | Right After

Solution to hide

<?php

    function hide_oxy_composite_elemenets(){
    if (isset ($_GET['ct_builder']) && 'true' === $_GET['ct_builder']) {
        echo '
            <style>
                #oxygen-add-sidebar .oxygen-add-composite-element {
                    display: none;
                }
            </style>
            ';
        }
    }
    add_action('wp_enqueue_scripts', 'hide_oxy_composite_elemenets');

?>

If you are using Scripts Organizer download code snippet

Solution to Disabled

<?php

    remove_action('init', 'run_oxygen_composite_elements');

?>

Thanks to Suppa Mike for providing second solution.

Click to Copy