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 | |
/** | |
* High volume modifications to Action Scheduler. | |
* | |
* Adapted from https://github.com/woocommerce/action-scheduler-high-volume/ | |
* | |
* Increase Action Scheduler batch size, concurrency, timeout period, and claim action query | |
* ORDER BY to process large queues of actions more quickly on servers with more server resources. | |
* | |
* @package UniversalYums\ActionScheduler |
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
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar | |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar | |
curl -L http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o php-cs-fixer | |
# Those files should be either on /usr/local/bin or /usr/bin depending on your machine | |
sudo mv phpcbf.phar /usr/local/bin/phpcbf | |
sudo mv phpcs.phar /usr/local/bin/phpcs | |
sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer | |
sudo chmod a+x /usr/local/bin/php-cs-fixer |
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 | |
/** | |
* WP_HTML_Table_Processor | |
* @author Seth Rubenstein | |
*/ | |
/** | |
* Pass in a table and get back an array of the header, rows, and footer cells quickly and effeciently. | |
* | |
* The WP_HTML_Tag_Processor bookmark tree navigation is heavily cribbed from WP_Directive_Processor class https://github.com/WordPress/block-interactivity-experiments/pull/169/files#diff-ad36045951e27010af027ae380350ae4b07b56a659a3127b40b7967b2308d5bc |
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
public function is_cache_plugin_installed() { | |
return | |
function_exists( 'w3tc_flush_post' ) || | |
function_exists( 'wp_cache_post_change' ) || | |
function_exists( 'rocket_clean_post' ) || | |
has_action( 'cachify_remove_post_cache' ) || | |
has_action( 'litespeed_purge_post' ) || | |
function_exists( 'wpfc_clear_post_cache_by_id' ) || | |
class_exists( 'WPO_Page_Cache' ) || | |
has_action( 'cache_enabler_clear_page_cache_by_post' ) || |
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
const { createElement: el, useState, useEffect } = React; | |
const PanelBody = wp.components.PanelBody; | |
const PluginSidebar = wp.editor.PluginSidebar; | |
const addAction = wp.hooks.addAction; | |
const registerPlugin = wp.plugins.registerPlugin; | |
function MyPluginSidebar() { | |
const [ deprecations, setDeprecations ] = useState( [] ); | |
useEffect( () => { | |
addAction( |
OlderNewer