Skip to content

Instantly share code, notes, and snippets.

@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 May 14, 2025 12:53
All-in-One WP Migration - Restore From Server (without PRO version) - Restore

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: March 2025 on version 7.91

Thanks @xxxdepy, and @tanveeratlogicx for confirming this still works in version 7.91!

@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);