Home>Support>SiteOrigin Page Builder remove “Revert to Editor” button

SiteOrigin Page Builder remove “Revert to Editor” button

By jane hohman, 3 years ago. Last reply by Alex S, 3 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Is it possible to remove the “Revert to Editor” button on the post edit view via a hook in the used themes functions.php?
I played around with the rendering hook siteorigin_panels_render but with no effect :(

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 3 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Jane,

    You can remove the Revert to Editor button by filtering siteorigin_panels_builder_supports. Here’s an example snippet of how to do this:

    (removed – see next comment)

    Kind regards,
    Alex

  2. 3 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Jane,

    Sorry, there was a typo in the previous PHP. The correct PHP is:

    add_filter( 'siteorigin_panels_builder_supports', function( $supports, $post, $panels_data ) {
    	$supports['revertToEditor'] = false;
    
    	return $supports;
    } );
    

    Kind regards,
    Alex

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More