This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

SiteOrigin Page Builder remove “Revert to Editor” button

Open 2 replies generaltechnical
4 years ago · Last reply by Alex S 4 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Alex S Staff 4 years, 6 months ago

    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. Alex S Staff 4 years, 6 months ago

    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.

Have a different question or issue?

Start New Thread