This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"summary_ae3771eaadbc926229ec17f11edc04b1_cc4dfbb6e622799f96c5f17f7f0ad229": { | |
"summary": "The stub files generated by 'php-stubs-generator' and 'Stubz' are nearly identical, with only minor differences in formatting and the handling of the default parameter value for the `get` method.", | |
"differences": [ | |
{ | |
"description": "The 'php-stubs-generator' version uses \\false as the default value for the $default parameter in the get method, while the 'Stubz' version uses false without the backslash." | |
}, | |
{ | |
"description": "There is a slight difference in indentation and spacing between the two stub files. The 'php-stubs-generator' version has more consistent spacing around braces and after commas." | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WooCommerce Enable COT | |
* Description: Adds the code to enable Custom Order Tables. | |
* Version: 0.0.4 | |
*/ | |
function wc_enable_cot() { | |
/** @var \Automattic\WooCommerce\Internal\Features\FeaturesController $features_controller */ | |
$features_controller = wc_get_container()->get( 'Automattic\WooCommerce\Internal\Features\FeaturesController' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body id="delayBody"> | |
Visible after timeout | |
<script id="jsbin-javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// As seen on https://codex.wordpress.org/Plugin_API/Action_Reference | |
$actions = [ | |
'muplugins_loaded', | |
'registered_taxonomy', | |
'registered_post_type', | |
'plugins_loaded', | |
'sanitize_comment_cookies', | |
'setup_theme', | |
'load_textdomain', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
block="# WordPress multisite subdirectory rules. | |
# Designed to be included in any server {} block. | |
map \$uri \$blogname{ | |
~^(?P<blogpath>/[^/]+/)files/(.*) \$blogpath ; | |
} | |
map \$blogname \$blogid { | |
default -999; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* CSS file with Bootstrap 4 grid classes for screens bigger than 1600px. Just add this file after the Bootstrap CSS file and you will be able to juse col-desktop, hidden-desktop, etc. | |
* | |
* Author: Lucas Bustamante (adapted to Bootstrap 4.0) | |
* Site: lucasbustamante.com.br | |
* | |
* Author: Marc van Nieuwenhuijzen (original file) | |
* Company: WebVakman | |
* Site: WebVakman.nl | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Paste your C:\Users\{user}\AppData\Roaming\FileZilla\sitemanager.xml on $string | |
*/ | |
$string = '<?xml version="1.0"?> | |
<FileZilla3 version="3.28.0" platform="windows"> | |
<Servers> | |
<Server> | |
<Host>something.com</Host> |