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: Enhanced WP Mail Attachments | |
* Plugin URI: https://gist.github.com/thomasfw/5df1a041fd8f9c939ef9d88d887ce023/ | |
* Version: 0.1 | |
*/ | |
/** | |
* Adds support for defining attachments as data arrays in wp_mail(). |
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 | |
add_filter( 'tribe_tickets_attendees_csv_export_delimiter', 'rt_et_change_csv_export_delimiter' ); | |
function rt_et_change_csv_export_delimiter( $default ) { | |
return '.'; | |
} |
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 // phpcs:disable WordPress.Files.FileName.InvalidClassFileName | |
/* | |
* Plugin Name: Non-Handling Shutdown Handler | |
* Description: Disable WSOD protection so that plugins will not auto-suspend during development while errors often occur. | |
* Plugin URI: https://gist.github.com/westonruter/583a42392a0b8684dc268b40d44eb7f1 | |
* Plugin Author: Weston Ruter | |
*/ | |
/** |
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 | |
/** | |
* Enable dev mode vendor packages. | |
*/ | |
if ( ! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG ) { | |
return; | |
} | |
add_action( 'init', function () { |
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: Jetpack amp-gist | |
* Description: Temporary AMP compatibility shim for Gist embedding in Jetpack (until <a href="https://github.com/Automattic/jetpack/pull/10053">PR #10053</a> is merged). For use with the <a href="https://github.com/Automattic/amp-wp">AMP plugin</a>. | |
* Plugin URI: https://gist.github.com/westonruter/8c91e3a218eeb1403ce2eacb832c0783 | |
* Version: 0.1 | |
* Author: Weston Ruter | |
* Author URI: https://weston.ruter.net | |
*/ |
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: YOUR PLUGIN NAME | |
*/ | |
include( dirname( __FILE__ ) . '/lib/requirements-check.php' ); | |
$your_plugin_requirements_check = new YOUR_PREFIX_Requirements_Check( array( | |
'title' => 'YOUR PLUGIN NAME', | |
'php' => '5.4', |
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
# wp-cli: http://wp-cli.org/ | |
wp plugin search debug-bar --field=slug --format=csv --per-page=50 \ | |
| grep -F 'debug-bar-' \ | |
| xargs -n 1 wp plugin install |
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
add_action( 'customize_register' , 'my_options' ); | |
function home_page_options( $wp_customize ) { | |
// get current lang | |
$language = (empty($_REQUEST['lang'])) ? 'en_' : $_REQUEST['lang'] . '_'; | |
$wp_customize->add_setting( $language . 'my_field', | |
array( | |
'default' => '' |
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
/* Make sure edit shortcut for nab body class doesn't conflict with nav menu edit shortcut */ | |
.customize-partial-edit-shortcut-nav_body_class > .customize-partial-edit-shortcut-button { | |
top: -30px; | |
} | |
/* Example styles */ | |
body.foo nav { | |
border: solid 2px red !important; | |
} |
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: Customizer Cross-Domain Workaround (Trac #39128) | |
* Description: Force customizer preview to use siteurl instead of home URL to work around Trac #39128. Temp fix for issue loading customizer preview when home and siteurl have different domains (cross-domain). | |
* Plugin URI: https://core.trac.wordpress.org/ticket/39128 | |
* Author: Weston Ruter, XWP | |
* Author URI: https://make.xwp.co/ | |
* | |
* Copyright (c) 2017 XWP (https://xwp.co/) | |
* |
NewerOlder