Disable the admin bar for all users automatically.
- Download or copy the
disable-admin-bar.php
file - Place it under
wp-content/mu-plugins
- Done
import { createClient } from "redis" | |
type Listener = <E extends Event>(event: E) => void | |
/** | |
* Atomic distributed memory accross nodes | |
* backed by Redis server. | |
*/ | |
class DistributedMemory { | |
/** |
import { promises as fs } from "fs" | |
import path from "path" | |
export interface NodeItem { | |
id: string | |
data: any | |
} | |
const cache: NodeItem[] = [] |
<?php | |
/** | |
* Plugin Name: Elementor S3 | |
* Description: Elementor support for S3 Uploads plugins | |
* Plugin URI: https://gist.github.com/lightningspirit/73df703f0db1fef14bd30d64ea1e8631 | |
* Author: Move Your Digital, Inc. | |
* Author URI: https://moveyourdigital.com | |
* Version: 0.1.0 | |
* |
For multisite network ONLY
Adds a new Plugins
tab under wp-admin/network/sites.php
which gives
the ability to enable or disable (without actually activate) plugins per site.
This just "hides" not enabled plugins from the site plugins area.
Note: the super-admin can still have access to all plugins, even for each specific website which is great because the super-admin can activate hidden plugins :-)
function classNames(...classes: (boolean | string | string[])[]) { | |
return classes | |
.flatMap((v) => v) | |
.filter(Boolean) | |
.join(" ") | |
} |
interface Omit { | |
<T extends Record<string, any>, K extends [...(keyof T)[]]>( | |
obj: T, | |
...keys: K | |
): { | |
[K2 in Exclude<keyof T, K[number]>]: T[K2] | |
} | |
} | |
const omit: Omit = (obj, ...props) => { |
{ | |
"name": "my-plugin-test" | |
} |