This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.25356069207191467</real> |
This file contains hidden or 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
async function handleRequest(request) { | |
const url = new URL(request.url); | |
// Modify the URL to target WordPress.org | |
if (url.pathname.startsWith('/plugins/')) { | |
url.hostname = 'api.wordpress.org'; | |
url.pathname = url.pathname.replace('/plugins/', '/plugins/info/1.2/'); | |
} else if (url.pathname.startsWith('/themes/')) { | |
url.hostname = 'api.wordpress.org'; | |
url.pathname = url.pathname.replace('/themes/', '/themes/info/1.2/'); |
This file contains hidden or 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: Cloudflare Proxy for WordPress Updates | |
Description: Proxy WordPress.org theme and plugin update requests via a Cloudflare Worker. | |
Version: 1.0.0 | |
Author: 9seeds, Jon Brown | |
Author URI: https://9seeds.com/ | |
License: GPL-2.0+ | |
License URI: http://www.gnu.org/licenses/gpl-2.0.txt | |
Copyright: 2024 Jon Brown |
This file contains hidden or 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 | |
/** | |
* Customize admin bar items | |
* | |
* @since 1.0 | |
* @author Jon Brown | |
* @global array $wp_admin_bar | |
*/ | |
function s9_customize_admin_bar_items() { | |
global $wp_admin_bar; |
This file contains hidden or 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 | |
/** | |
* Adds a menu item to the admin menu for managing patterns | |
*/ | |
function s9_add_manage_patterns_menu() { | |
// Check if the current user has the capability to edit pages | |
if (!current_user_can('edit_pages')) { | |
return; | |
} |
This file contains hidden or 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
.yst-grid.yst-gap-6.yst-grid-cols-1.sm\:yst-grid-cols-2.min-\[783px\]\:yst-grid-cols-1.lg\:yst-grid-cols-2.\32 xl\:yst-grid-cols-3.min-\[1800px\]\:yst-grid-cols-4 { | |
grid-template-columns: repeat(1,minmax(0,1fr))!important; | |
} | |
img.yst-w-full { | |
display: none; | |
} | |
.xl\:yst-max-w-3xl.xl\:yst-fixed.xl\:yst-right-8.xl\:yst-w-\[16rem\] { | |
display: none; |
This file contains hidden or 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( 'members_default_post_roles', 's9_members_force_content_protection' ); | |
function s9_members_force_content_protection( $roles ) { | |
if ( 'minutes' === get_post_type( get_the_ID() ) ) { | |
$roles = array( 'board_member', 'home_owner' ); | |
} | |
return $roles; | |
} |
This file contains hidden or 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 | |
/** | |
* WooCommerce Delete Product Images with Product Deletion | |
* | |
* @since 2.1.0 | |
* @link https://gitlab.com/9seeds/plugins/9s-core-functionality | |
* | |
* @author Jon Brown <[email protected]> | |
* @copyright Copyright (c) 2022, Jon Brown | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
This file contains hidden or 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 | |
// WooCommerce Subscription Update Address Checkbox checked by default | |
add_filter( 'wcs_update_all_subscriptions_addresses_checked', '__return_true' ); | |
// WooCommerce Subscription Update Address Change Label | |
add_filter( 'woocommerce_form_field_args', 'my_woocommerce_form_field_args', 10, 3 ); | |
function my_woocommerce_form_field_args( $args, $key, $value ) { | |
if ( function_exists ('wcs_get_address_type_to_display') && $key == 'update_all_subscriptions_addresses' ) { |
This file contains hidden or 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 FacetWP scroll to top of content on pagination | |
add_action('wp_head','s9_scroll_to_top_on_pagination'); | |
function s9_scroll_to_top_on_pagination() { | |
echo <<<END | |
<script> | |
(function($) { | |
$(document).on('facetwp-refresh', function() { | |
if ( FWP.soft_refresh == true ) { | |
FWP.enable_scroll = true; | |
} else { |
NewerOlder