Skip to content

Instantly share code, notes, and snippets.

View bentideswell's full-sized avatar

Ben Tideswell bentideswell

View GitHub Profile
@bentideswell
bentideswell / wp-debug.php
Created October 20, 2022 09:43
Provide debug information for a WordPress installation using FishPig. Especially useful for Multisite/Network installs.
<?php
/**
* @FishPig.com
*/
ini_set('display_errors', 1);
error_reporting(E_ALL);
$isCli = PHP_SAPI === 'cli';
define('DS', DIRECTORY_SEPARATOR);
@bentideswell
bentideswell / .htaccess
Last active March 9, 2022 10:03
IP Protection for WordPress in a subdirectory when using local integration mode in FishPig_WordPress
#
# Secure WordPress when integrated into Magento when installed in a subdirectory
# https://fishpig.co.uk/magento/wordpress-integration/docs/#security
#
#
# Setup the default index file
DirectoryIndex index.html index.php
<IfModule mod_rewrite.c>
@bentideswell
bentideswell / FishPig_WordPress-SocialPug.php
Last active October 14, 2019 14:39
Code to add support for Social Pug plugin to FishPig_WordPress
<?php
/**
* Add this code to your local.php in the FishPig theme
* wp-content/themes/fishpig/local.php
*
* This code stops the Social Pug plugin in WordPress from displaying the floating
* social buttons twice.
*
* This works for FishPig_WordPress for Magento 1 and Magento 2
* It also requires the Shortcodes & Widgets add-on module: