Skip to content

Instantly share code, notes, and snippets.

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

Sebastian Ortiz dsebao

🏠
Working from home
View GitHub Profile
@dsebao
dsebao / master.yml
Created August 22, 2023 22:00 — forked from joseph-farruggio/master.yml
Github Action for deploying a WordPress plugin
name: Build and Publish Production Plugin
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
@dsebao
dsebao / acf-ajax.php
Created July 22, 2021 15:28 — forked from daronspence/acf-ajax.php
ACF AJAX for Mike
<?php
add_action('admin_head', function(){
?>
<script type="text/javascript">
/*
updated JS file for use with ACF >= 5.7.0
*/
@dsebao
dsebao / info.md
Created February 14, 2020 03:49 — forked from ajitbohra/info.md
Laravel Development Using Local By FlyWheel
  • Use local site "app" fodler as root for Laravel
  • Create a .env file using info from Local site domain
  • CLI Run php artisan key:generate
  • CLI Run php artisan config:cache
@dsebao
dsebao / flywheel-local-xdebug-vscode.md
Created December 4, 2019 02:11 — forked from ahmadawais/flywheel-local-xdebug-vscode.md
Debug WordPress with Visual Studio Code | VSCode WordPress Debug Setup | WordPress xDebug Setup for Local by FlyWheel with VSCode | Part of the VSCode Learning Course → https://VSCode.pro

VSCode WordPress Debugging Setup: WordPress Xdebug Setup for Local by FlyWheel with VSCode


Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User

🚅 TL;DR

  • Make sure your Local by FlyWheel WordPress install is a custom install
@dsebao
dsebao / wordpress-custom-walker-menu.php
Created December 3, 2019 02:12 — forked from dhanyn10/wordpress-custom-walker-menu.php
Simple guide to creating your own custom wordpress Walker Menu, insert to functions.php
<?php
/*
=====================
custom menu
=====================
<ul>
<1><3></4></2>
<1>
<3></4>
<5>
@dsebao
dsebao / GoogleSpreadsheet.html
Created August 24, 2018 14:28 — forked from terrywbrady/GoogleSpreadsheet.html
Sample HTML/JS to parse a Google Spreadsheet
<!doctype html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
var spData = null;
function doData(json) {
spData = json.feed.entry;
}
@dsebao
dsebao / .htaccess
Last active May 2, 2018 14:08 — forked from Zodiac1978/.htaccess
Safer WordPress with these .htaccess additions
# Don't show errors which contain full path diclosure (FPD)
# Use that line only if PHP is installed as a module and not per CGI
# try using a php.ini in that case.
# Change mod_php5.c to mod_php7.c if you are running PHP7
<IfModule mod_php5.c>
php_flag display_errors Off
</IfModule>
# Don't list directories
<IfModule mod_autoindex.c>