Skip to content

Instantly share code, notes, and snippets.

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

Jean Wang jeanwang2dev

🏠
Working from home
View GitHub Profile
// Add Google Tag Manager Head Script
add_action( 'wp_head', 'themeslug__add_header_script' );
if ( ! function_exists( 'themeslug__add_header_script' ) ) {
/**
* Add Head Scripts like Google Tag Manager Header Scripts.
*/
function themeslug__add_header_script() {
$url = parse_url(get_home_url());
if( $url['host'] == 'yourdomain.com' ) {
@jeanwang2dev
jeanwang2dev / cloudSettings
Last active March 7, 2020 14:17
Vscode Setting Sync
{"lastUpload":"2020-03-07T14:17:10.369Z","extensionVersion":"v3.4.3"}
@jeanwang2dev
jeanwang2dev / Dockerfile
Created September 17, 2019 15:24
Dockerfile for wordpress service
#wordpress
FROM wordpress:5.2.2-php7.2-apache
RUN apt-get update && apt-get install acl -y
COPY setuser.sh /var/www/html
RUN chmod +x /var/www/html/setuser.sh
# hacking into wordpress entry file