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: Accordion Accessibility Enhancements | |
* Description: Adds tab-index enhancements to Getwid accordion items for better accessibility. | |
* Version: 1.16 | |
* Author: Terrance Orletsky / ChatGPT | |
*/ | |
function em_add_inline_js_to_footer() { | |
?> | |
<script type="text/javascript" id="getwid-wcag"> |
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: Terminus Output Test | |
* Description: A WP-CLI command that counts to 250k with a 5 second wait per increment. Terminus is not passing WP-CLI output back to the terminal - As a result, the connection is closed after 10 minutes while the CLI command continues in the remote container with no way to stop it. | |
* Usage: terminus wp site.env --verbose -- terminus-output-test | |
* Version: 1.0 | |
* Author: Terrance Orletsky / ChatGPT | |
*/ | |
if ( defined( 'WP_CLI' ) && WP_CLI ) { |
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
#!/bin/bash | |
# Usage from project root | |
# make sure your default public key (id_rsa.pub) is added to pantheon | |
# bash /path/to/bash/script/collect-php-error-log-rsync.sh | |
# ** put this in the folder you also want the '/logs' folder to land in | |
### SET SCRIPT PARAMS ### | |
# Site UUID is REQUIRED: Get from Pantheon Dashboard URL | |
SITE_UUID="12345678-1234-1234-abcd-0123456789ab" |
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: EM Custom Login Logo and Styles | |
* Description: MU-Plugin - Customizes the login page with a custom logo and styles. | |
* Author: Terrance Orletsky / ChatGPT | |
* Version: 2.3.2 | |
*/ | |
add_action( 'login_enqueue_scripts', 'em_custom_login_styles' ); |
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: Plugin Versions | |
* Description: Adds a Plugin Versions menu in WordPress Admin under Plugins. | |
* Author: Terrance Orletsky - Earthman Media | |
* Author URI: https://earthmanmedia.com | |
* Version: 1.0.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
function em_setup_media_permissions() { | |
add_filter( 'user_has_cap', 'em_grant_media_permissions_except_subscriber', 1000, 4 ); | |
} | |
// add custom caps to enable media permissions for custom roles | |
function em_grant_media_permissions_except_subscriber( $allcaps, $caps, $args, $user ) { | |
$post_id = isset( $_REQUEST['post'] ) ? $_REQUEST['post'] : ( isset( $args[2] ) ? $args[2] : null ); | |
if ( ! $post_id ) { |
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: Plugins Enabled | |
* Description: Displays the plugin status across all sites in a WordPress Multisite network. | |
* Author: Terrance Orletsky - Earthman Media | |
* Author URI: https://earthmanmedia.com | |
* Version: 1.0.7 | |
*/ | |
add_action( 'network_admin_menu', 'wpms_plugin_list_menu' ); |
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 | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit( 'restricted access' ); | |
} | |
/* | |
* This is a function that show copier section. | |
* Show multisite relationships. | |
*/ | |
if ( ! function_exists( 'wmcc_display_content_copier' ) ) { |
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: Plugin Versions | |
* Description: Adds a Plugin Versions menu in WordPress Network Admin under Plugins. | |
* Author: Terrance Orletsky - Earthman Media | |
* Author URI: https://earthmanmedia.com | |
* Version: 1.0 | |
*/ | |
NewerOlder