Skip to content

Instantly share code, notes, and snippets.

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

Florian code-flow

😆
happy
View GitHub Profile
<?php
/*
Plugin Name: snip - WooCommerce review args
Plugin URI: https://rich-snippets.io/woocommerce-review-args-hook/
Description: Changes arguments on WooCommerce reviews
Version: 0.1.0
License: License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@code-flow
code-flow / wp-job-manager-schema-deactivator.php
Created April 9, 2019 20:52
WP Job Manager Structured Data Deactivator
<?php
/*
Plugin Name: WP Job Manager Structured Data Deactivator
Description: Turns Structured Data OFF for the WP Job Manager Plugin.
Author: wpbuddy
Version: 0.1.0
Author URI: https://rich-snippets.io/wp-job-manager/
Plugin URI: https://rich-snippets.io
*/
@code-flow
code-flow / snip-post-thumbnail-sizes.php
Created May 28, 2019 07:12
SNIP Extension that lets you choose a certain post thumbnail size
<?php
/*
Plugin Name: SNIP: Post Thumbnail Sizes
Version: 0.1.0
*/
if ( ! defined('ABSPATH')) {
exit;
} // Exit if accessed directly
@code-flow
code-flow / remove-yoast-woocommerce-schema.php
Created August 1, 2019 06:35
Removes Structured Data generated from Yoast SEO for WooCommerce.
<?php
/*
Plugin Name: Yoast SEO: WooCommerce Structured Data Remover
Version: 0.1.0
Description: Removes Structured Data generated from Yoast SEO for WooCommerce.
*/
add_action( 'init', 'wbud_yoast_seo_structured_data_remover' );
function wbud_yoast_seo_structured_data_remover() {
@code-flow
code-flow / snip-basic-field-type.php
Created August 22, 2019 14:26
SNIP Basic Field Type Example
<?php
/*
Plugin Name: SNIP Basic Field Type Example
Description: A plugin that adds a new Field Type in SNIP.
Author: Florian Simeth
Version: 0.1.0
Author URI: https://rich-snippets.io
Plugin URI: https://rich-snippets.io/how-to-add-your-own-field-type/
*/
@code-flow
code-flow / snip-comments-field.php
Last active September 30, 2019 09:56
SNIP Comments Field
<?php
/*
Plugin Name: SNIP Comments Field
Description: Allows to integrate comments into Structured Data.
Author: Florian Simeth
Version: 0.1.0
Author URI: https://rich-snippets.io
Plugin URI: https://rich-snippets.io/comments-field-type/
*/
@code-flow
code-flow / snip-custom-loop.php
Created January 6, 2020 10:11
Adds a custom loop to SNIP
<?php
/*
Plugin Name: SNIP Custom Loop
Version: 0.1.0
Description: Example that shows how to create custom loops.
*/
add_filter( 'wpbuddy/rich_snippets/fields/loop_subselect/values', 'csnip_loop_values', 10, 1 );
/**
<?php
/*
Plugin Name: SNIP Shortcode Example
Description: A plugin that allows to add shortcode-content to schema properties.
Author: Florian Simeth
Version: 0.1.0
Author URI: https://rich-snippets.io
Plugin URI: https://rich-snippets.io/shortcode-content-in-properties/
*/
@code-flow
code-flow / snip-permissions.php
Created April 13, 2020 09:28
Permissions for editors in SNIP
<?php
/*
Plugin Name: snip Permissions
Description: Sets permissions to use SNIPs REST API the way you like it.
Version: 0.1.0
*/
add_filter(
'wpbuddy/rich_snippets/rest/permission',
@code-flow
code-flow / wpt-allow-svg.php
Last active October 28, 2021 11:05
Allows the upload of SVG images into WordPress.
<?php
/**
* Plugin Name: Allow SVG
* Plugin URI: https://wp-typ.de/entwicklung/svg-dateien-in-wordpress-erlauben-so-gehts/
* Description: Allows the upload of SVG images into WordPress.
* Requires at least: 5.0
* Requires PHP: 5.6
* Version: 0.1.1
* Author: Florian Simeth
*/