Skip to content

Instantly share code, notes, and snippets.

@bekarice
bekarice / user-switching-notice-for-wc.php
Created February 12, 2019 01:40
Uses the "demo store" notice to show a switch back link for WC customer accounts with User Switching: http://cloud.skyver.ge/c50cbcd4c5e7
<?php
/**
* Plugin Name: User Switching Notice for WooCommerce
* Plugin URI: https://gist.github.com/bekarice/7785293fb60d7d5297a245b1c1271272
* Description: Adds a frontend notice to switch back to your user on WooCommerce sites with User Switching.
* Author: SkyVerge
* Author URI: http://www.skyverge.com/
* Version: 1.0.0
* Text Domain: user-switching-notice-for-woocommerce
*
@bekarice
bekarice / yoast-seo-with-coauthors-plus.php
Created April 19, 2018 19:01
Forces Yoast to use the display name directly for the queried object so the proper coauthor name is used as the page title.
<?php // only copy if needed!
/**
* Fixes page titles for co-author archives.
*
* @param string[] $replacement Yoast title settings replacement data
* @return string[] updated data
*/
function br_fix_author_archive_title( $replacement ) {
@bekarice
bekarice / filter-wc-orders-by-gateway.php
Last active August 3, 2023 13:37
Filters WooCommerce Orders by Payment Gateway Used
<?php
/**
* Plugin Name: Filter WooCommerce Orders by Payment Method
* Plugin URI: http://skyverge.com/
* Description: Filters WooCommerce orders by the payment method used :)
* Author: SkyVerge
* Author URI: http://www.skyverge.com/
* Version: 1.0.0
* Text Domain: wc-filter-orders-by-payment
*
@bekarice
bekarice / sv-background-test.php
Created June 21, 2017 00:54
Provides a plugin to test whether a server will allow background job processing or not for WooComm import / export plugins.
<?php
/**
* Plugin Name: Background Processing Test for Import / Export
* Plugin URI: http://skyverge.com/
* Description: Tests whether or not the server can connect to itself to process jobs asynchronously.
* Author: SkyVerge
* Author URI: http://www.skyverge.com/
* Version: 1.0.0
* Text Domain: sv-background
*