Skip to content

Instantly share code, notes, and snippets.

View kakonbarman's full-sized avatar

Kakon Barman kakonbarman

View GitHub Profile
@kakonbarman
kakonbarman / admin-bar-bluprint.json
Last active August 29, 2026 06:53
Admin Bar Plugin Blueprint JSON File
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"description": "Live preview of Admin Bar Editor - Installs and activates the plugin, skips setup, and applies sample configurations to demonstrate toolbar customization.",
"landingPage": "/wp-admin/admin.php?page=jlt_admin_bar_editor-settings",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"description": "Live preview of Adminify - enables the Adminify admin UI, skips the setup wizard and lands in the Adminify settings panel, so the white label, admin menu editor, login customizer, dark mode and media folder options are available immediately.",
"landingPage": "/wp-admin/admin.php?page=wp-adminify-settings",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/options-general.php?page=disable-commands",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
@kakonbarman
kakonbarman / 1. render-css.js
Created June 28, 2022 15:08 — forked from codersantosh/1. render-css.js
React Component for Internal CSS
/*STYLIS : https://www.npmjs.com/package/stylis*/
import {compile, serialize, stringify, middleware, prefixer} from 'stylis';
/*Process the Raw CSS*/
const getProcessedCss = (rawCss) =>{
return serialize(compile(rawCss), middleware([prefixer, stringify]))
}
/*Render CSS inside style tag*/
const RenderCss = (props) => {