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
2Hi 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
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.