Skip to content

Instantly share code, notes, and snippets.

@stingray82
stingray82 / Create a Site from a Private Template.json
Last active November 30, 2024 17:22
Flowmattic - InstaWP Tutorial (3 Code Snippets, A custom App and 2 Workflows)
{"workflow_name":"Create%20Site%20From%20(Private%20Template)","workflow_steps":[{"type":"trigger","stepID":"nbxbW-1726581552627","pluginAction":"","webhook_url":"https://flowmattic.wptv.uk/webhook/capture/wTdb5DY2rr","workflow_auth_key":"8k03F4UBgcdixQsFsvCXXTzisc59iyyX","application":"webhook","conditional_execution":"Yes","connect_id":"6","simple_response":"No","webhook_response":"No","webhook_security":"No","php_function":"getSiteIDByName","parameter_type":"variable","template_slug":"{php_functions3.response}","is_reserved":"no","is_shared":"no","has_subscribed":"true","task_id":"{custom_app_jj2cfgE4.data_task_id}","php_version":"8.2","delayValue":"2","from_name":"you@you.com","from_email":"you@you.com","to_email":"{webhook1.email}","email_subject":"You Wanted to Test Our BluePrint- Here you Go {custom_app_jj2cfgE4.data_wp_url}","email_body":"Dear&nbsp;{webhook1.names_first_name},<div><br></div><div>You wanted to test our awesome blueprint:&nbsp;{webhook1.dropdown}</div><div><br></div><div>Well Here you g
@napsterrahul
napsterrahul / List.md
Last active June 9, 2025 10:32
List of open source projects made with Laravel
//wp-config.php にマルチサイトで指定されたものプラスで下記追加
$base = 'subfolder';
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
@butlerblog
butlerblog / functions.php
Last active October 22, 2025 09:02
SMTP using wp-config.php for settings #smtp #wp_mail
<?php // Don't use this line.
/*
* Add the script below to wherever you store custom code snippets
* in your site, whether that's your child theme's functions.php,
* a custom plugin file, or through a code snippet plugin.
*/
/**
* This function will connect wp_mail to your authenticated
@markjaquith
markjaquith / wp-config.php
Created August 12, 2013 20:19
`wp-config.php` file to sit above a pristine WordPress directory, whereby the site can symlink their WP directory to a common one, and this file will make sure their `wp-config.php` is the one that gets called. Untested in production. Just an idea right now.
<?php
$path = str_replace( $_SERVER['DOCUMENT_ROOT'], '', dirname( $_SERVER['SCRIPT_FILENAME'] ) );
$path_parts = explode( '/', $path );
while ( count( $path_parts ) > 0 ) {
$path = $_SERVER['DOCUMENT_ROOT'] . implode( '/', $path_parts ) . '/wp-config.php';
if ( file_exists( $path ) ) {
include( $path );
break;
} else {
array_pop( $path_parts );
@weskoop
weskoop / gist:3796570
Created September 27, 2012 21:27
My current Linode Symlinked WP Core, APC/Batcache Setup
Site Root /
content/
advanced-cache.php
index.php
mu-plugins/ -> /shared/wp/mu-plugins
object-cache.php
plugins/
themes/
uploads/
index.php