Here’s some relevant notes:
Both outer and canvas:
if ( bricks_is_builder() ) {
}
Only outer (this code won’t run in the inner canvas (your actual Page/template)):
if ( bricks_is_builder_main() ) {
Here’s some relevant notes:
Both outer and canvas:
if ( bricks_is_builder() ) {
}
Only outer (this code won’t run in the inner canvas (your actual Page/template)):
if ( bricks_is_builder_main() ) {
| <?php | |
| /** | |
| * Plugin Name: Multiple Roles per User | |
| * Description: Allows anyone who can edit users to set multiple roles per user. In a default WordPress environment that wouldn't have much of an effect, since the user would have the privileges of the top-privileged role that you assign to him. But if you have custom roles with custom privileges, this might be helpful. | |
| * Version: 1 | |
| * Author: nikolov.tmw | |
| * Author URI: http://paiyakdev.com/ | |
| * License: GPL2 | |
| */ |
If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, open your browser’s dev tools and run the code below in the console:
Last confirmed working: May 2025 on version 7.94
var filename = 'FILENAME.wpress';
| // Add on element with overflow | |
| -webkit-mask-image: -webkit-radial-gradient(white, black); |