Skip to content

Instantly share code, notes, and snippets.

View code-flow's full-sized avatar
😆
happy

Florian code-flow

😆
happy
View GitHub Profile
@code-flow
code-flow / performance.php
Created May 11, 2023 15:02
Deactivate WordPress Plugins in the frontend if they're not needed
<?php
/*
Plugin Name: Plugin-Deactivate-Test
Version: 1.0.0
*/
// Place this file in wp-content/mu-plugins/
add_filter( 'option_active_plugins', 'mu_deactivate_unnecessary_plugins' );
@code-flow
code-flow / snip-yotpo-bridge.php
Created September 1, 2023 07:12
SNIP Yotpo Bridge Plugin
<?php
/*
Plugin Name: SNIP/Yotpo Bridge
Description: Allows to use Yotpo ratings on Structured Data generated with SNIP.
Author: Florian Simeth
Version: 0.3.0
Author URI: https://rich-snippets.io/yotpo-bridge
Plugin URI: https://rich-snippets.io
*/
@code-flow
code-flow / snip-woocommerce-offers-merchants.php
Created April 12, 2024 07:53
Add Merchant fields to WooCommerce offers
<?php
/*
Plugin Name: SNIP WooCommerce Offers Merchants
Description: Adds new fields for merchants in the WooCommerce Offers schema.
Author: Florian Simeth
Version: 0.1.0
Author URI: https://rich-snippets.io
Plugin URI: https://rich-snippets.io/add-merchant-fields-to-woocommerce-offers/
*/