Skip to content

Instantly share code, notes, and snippets.

View maximebj's full-sized avatar
🚀

Maxime BJ maximebj

🚀
View GitHub Profile
@maximebj
maximebj / gulpfile.js
Last active June 25, 2020 17:49
Gulp 4 + Stylus + Browser Sync.
const { src, dest, series, watch } = require('gulp')
const stylus = require('gulp-stylus')
const plumber = require('gulp-plumber')
const browserSync = require('browser-sync')
const sourcemaps = require('gulp-sourcemaps')
const clean = require('gulp-clean')
const server = browserSync.create();
const url = 'site.local'; // Change me
@maximebj
maximebj / functions.php
Last active March 10, 2020 09:04
WordPress ACF PHP Fields back to Admin with JSON • Works with newer ACF versions
<?php
// This script allows you to get your ACF PHP Fields back in the Admin
$json = "";
// get all the local field groups
$field_groups = acf_get_local_field_groups();
// loop over each of the gield gruops
foreach( $field_groups as $field_group ) {