Enabling page builder in php

Is there a way to enable the page builder on a page using php? or a way to make it active by default?
Also is there an action hook or a filter for the moment the page builder is fired up on a page, that means right before the builder ui gets displayed?

Thanks.

Hi Loretta,

To enable the builder on a page using PHP I believe this article in our KB should help you.

http://forum.wpbeaverbuilder.com/knowledge-base/rendering-layouts-with-php/

Unfortunately, there is no hook before the UI is displayed. However, spoke to one of our developers and they suggested trying a WordPress hook plugins_loaded, but isn’t sure if this will work or not.

https://developer.wordpress.org/reference/hooks/plugins_loaded/

Thanks,
Danny