Filters

Hide Swift Control Panel from certain Pages/Archives

You can use the swift_control_frontend_display filter to hide/show the Swift Control panel from/on certain pages, posts, archives, etc like this:

function prefix_hide_sc_panel( $display ) {

    if ( is_archive() ) {
        return false;
    }

    return $display;

}
add_filter( 'swift_control_frontend_display', 'prefix_hide_sc_panel' );

Still looking for the Perfect Theme?

Page Builder Framework is the perfect theme for your next project. Check out Page Builder Framework today!