Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
- Make sure your
Local by FlyWheel
WordPress install is a custom install
var gulp = require('gulp'); | |
var browserSync = require('browser-sync').create(); | |
var reload = browserSync.reload; | |
gulp.task('serve', function () { | |
// Standard call for dynamic sites. | |
browserSync.init({ | |
proxy: "avada.local" | |
}); |
<?php | |
/** | |
* | |
* Function that will automatically remove ACF field groups via JSON file update | |
* | |
*/ | |
function acf_auto_suppr($json_dirs) { | |
$groups = acf_get_field_groups(); | |
if (empty($groups)) { |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> |
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
<?php | |
add_action('admin_head', function(){ | |
?> | |
<script type="text/javascript"> | |
/* | |
updated JS file for use with ACF >= 5.7.0 | |
*/ | |
Eliminate All Blocks from Editor | |
wp.data.dispatch( 'core/block-editor' ).resetBlocks([]); | |
How to disable and lock Gutenberg blocks | |
https://kinsta.com/blog/disable-gutenberg-blocks/ | |
Convert group of file blocks to ACF block | |
https://bdwm.be/gutenberg-case-study-convert-group-of-file-blocks-to-acf-block/ | |
Enabling Gutenberg-Based Custom Post Types and Taxonomies |
Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
Local by FlyWheel
WordPress install is a custom install<?php | |
$sender_name = stripslashes($_POST["sender_name"]); | |
$sender_email = stripslashes($_POST["sender_email"]); | |
$sender_message = stripslashes($_POST["sender_message"]); | |
$response = $_POST["g-recaptcha-response"]; | |
$url = 'https://www.google.com/recaptcha/api/siteverify'; | |
$data = array( | |
'secret' => 'YOUR_SECRET', | |
'response' => $_POST["g-recaptcha-response"] |
/* | |
Copyright 2011 Martin Hawksey | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |