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 | |
# =============================================================================== | |
# Script to install PHPUnit in the Local by Flywheel Mac app | |
# These packages are installed | |
# | |
# PHPUnit, curl wget, rsync, git, subversion and composer. | |
# | |
# WordPress is installed in the `/tmp/wordpress` directory for use by PHPUnit. | |
# The WordPress test suite is installed in the `/tmp/wordpress-tests-lib` directory. |
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 | |
# ============================================================================= | |
# | |
# *** WARNING: THIS SCRIPT IS NO LONGER MAINTAINED *** | |
# | |
# use https://github.com/keesiemeijer/wp-update instead | |
# | |
# ============================================================================= |
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
// ==UserScript== | |
// @name Youtube SkipAd | |
// @namespace keesiemeijer | |
// @version 0.1 | |
// @description Automatically skips ads after 5 seconds | |
// @author keesiemeijer | |
// @match https://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== |
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 | |
/** | |
* Insert HTML between paragraphs in WordPress post content using php DOMDocument(). | |
* | |
* Inserts HTML in the middle of top level paragraphs. | |
* For example: | |
* | |
* <p>Hello</p> | |
* <blockquote> | |
* <p>Awesome</p><!-- not a top level paragraph --> |
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 | |
/** | |
* Gets date ranges for the BETWEEN operator in a WordPress meta query. | |
* WordPress minimum requirements don't let you | |
* use php DateTime or (some) relative formats for strtotime() which were introduced in php 5.3. | |
* | |
* @param string|array $args Arguments. | |
* @return array Array with two dates. | |
*/ | |
function get_between_clause_dates( $args ) { |
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
// ==UserScript== | |
// @name WordPress topic redirect | |
// @namespace WordPress_topic_redirect | |
// @description Forces https, adds view=all to topic urls and redirects if needed in the WordPress support forums. | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// @include *://*wordpress.org/support/topic/* | |
// @include *://wordpress.org/support/users/* | |
// @include *://wordpress.org/support/theme/* |
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
// ==UserScript== | |
// @name Imbd SkipAd | |
// @namespace Imbdskipad | |
// @version 0.1 | |
// @description Remove IMBD header ad | |
// @author keesiemeijer | |
// @match https://www.imdb.com/* | |
// @grant none | |
// ==/UserScript== |
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
1118 wp | |
714 get | |
389 post | |
242 comment | |
217 link | |
190 user | |
158 update | |
156 the | |
141 meta | |
139 admin |
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
869 wp | |
559 get | |
225 post | |
124 link | |
113 is | |
106 comment | |
99 update | |
99 add | |
97 the | |
89 ajax |
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: Shortcode Regex Finder | |
* Plugin URI: | |
* Description: This plugin creates the regex WordPress would use to find a specific shortcode in content. | |
* Author: keesiemijer | |
* License: GPL v2 | |
* Version: 1.0 | |
* Text Domain: shortcode-regex-finder | |
*/ |
NewerOlder