Skip to content

Instantly share code, notes, and snippets.

View leroyrosales's full-sized avatar
:octocat:

Leroy Rosales leroyrosales

:octocat:
View GitHub Profile
<?php
require '../vendor/autoload.php';
// Is this actually an AJAX request
if ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && ! empty( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) == 'xmlhttprequest' ) {
exit;
}
// Let's us use WP functions
@leroyrosales
leroyrosales / gist:50bd02399a9ed73c07982aa8ad725544
Created April 23, 2022 00:25 — forked from davepullig/gist:efddb9a894e0c4a824b4b61183cfb01c
WP CLI search and replace URLs for WordPress multisite
wp search-replace --network --url=website.dev website.dev website.tld --precise --all-tables
@leroyrosales
leroyrosales / Hispanic-Hackers.md
Last active August 23, 2022 19:05
Gist for Hispanic Hackers WP presentation