Skip to content

Instantly share code, notes, and snippets.

View luiskabes-arch's full-sized avatar

Rian Irawan luiskabes-arch

  • 10:43 (UTC +07:00)
View GitHub Profile

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() ) {
@eversionsystems
eversionsystems / multiple-roles-per-user.php
Last active March 10, 2025 13:46 — forked from nikolov-tmw/multiple-roles-per-user.php
Multiple roles per user WordPress plugin. Supports editing your own profile's roles.
<?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
*/
@giovanni-d
giovanni-d / allinonemigration.md
Last active August 25, 2026 04:58
All-in-One WP Migration - Restore From Server (without PRO version)

All-in-One WP Migration Restore From Server (without pro version)

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: Aug 2026 on version 7.107

var filename = 'FILENAME.wpress';
@ayamflow
ayamflow / gist:b602ab436ac9f05660d9c15190f4fd7b
Created May 9, 2016 19:10
Safari border-radius + overflow: hidden + CSS transform fix
// Add on element with overflow
-webkit-mask-image: -webkit-radial-gradient(white, black);