Skip to content

Instantly share code, notes, and snippets.

@pkosciak
pkosciak / BedrockTinkerwellDriver.php
Last active December 27, 2024 08:33
Tinkerwell driver for bedrock
<?php
/* Put this file inside .tinkerwell directory in your bedrock project */
use Tinkerwell\ContextMenu\Label;
class BedrockTinkerwellDriver extends TinkerwellDriver
{
public function canBootstrap($projectPath)
@pkosciak
pkosciak / wp-config-dev-sample.php
Last active November 27, 2023 08:51
WordPress configuration
<?php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('SCRIPT_DEBUG', true);
define('WP_DISABLE_FATAL_ERROR_HANDLER', true);
@ini_set('display_errors', 0);
//@ini_set('memory_limit', -1);
@pkosciak
pkosciak / wp-config.php
Last active November 16, 2023 20:54
Resolving wp-admin redirection loop in WordPress docker setup
define('FORCE_SSL_ADMIN', true);
if(!defined('WP_CLI')){
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false){
$_SERVER['HTTPS']='on';
}
}