Skip to content

Instantly share code, notes, and snippets.

View ducntq's full-sized avatar
🏠
Working from home

Duc Nguyen ducntq

🏠
Working from home
  • Ho Chi Minh City, Vietnam
View GitHub Profile
@ducntq
ducntq / docker-compose.yml
Last active November 28, 2022 06:31 — forked from smashnet/docker-compose.yml
Docker-Compose
version: "3.5"
services:
traefik:
image: traefik:v2.9
container_name: "traefik"
restart: always
command:
# - "--log.level=DEBUG"
- "--api.dashboard=true"
@ducntq
ducntq / wysiwyg-meta-box.php
Created September 9, 2016 13:30 — forked from retgef/wysiwyg-meta-box.php
How to add a Wordpress WYSIWYG editor to a meta box.
<?php
define('WYSIWYG_META_BOX_ID', 'my-editor');
define('WYSIWYG_EDITOR_ID', 'myeditor'); //Important for CSS that this is different
define('WYSIWYG_META_KEY', 'extra-content');
add_action('admin_init', 'wysiwyg_register_meta_box');
function wysiwyg_register_meta_box(){
add_meta_box(WYSIWYG_META_BOX_ID, __('WYSIWYG Meta Box', 'wysiwyg'), 'wysiwyg_render_meta_box', 'post');
}