Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
happy

Florian code-flow

💭
happy
View GitHub Profile
@code-flow
code-flow / snip-permissions.php
Created Apr 13, 2020
Permissions for editors in SNIP
View snip-permissions.php
<?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',
View snip-shortcodes.php
<?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-custom-loop.php
Created Jan 6, 2020
Adds a custom loop to SNIP
View snip-custom-loop.php
<?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 );
/**
@code-flow
code-flow / snip-comments-field.php
Last active Sep 30, 2019
SNIP Comments Field
View snip-comments-field.php
<?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-basic-field-type.php
Created Aug 22, 2019
SNIP Basic Field Type Example
View snip-basic-field-type.php
<?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 / remove-yoast-woocommerce-schema.php
Created Aug 1, 2019
Removes Structured Data generated from Yoast SEO for WooCommerce.
View remove-yoast-woocommerce-schema.php
<?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-post-thumbnail-sizes.php
Created May 28, 2019
SNIP Extension that lets you choose a certain post thumbnail size
View snip-post-thumbnail-sizes.php
<?php
/*
Plugin Name: SNIP: Post Thumbnail Sizes
Version: 0.1.0
*/
if ( ! defined('ABSPATH')) {
exit;
} // Exit if accessed directly
@code-flow
code-flow / wp-job-manager-schema-deactivator.php
Created Apr 9, 2019
WP Job Manager Structured Data Deactivator
View wp-job-manager-schema-deactivator.php
<?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
*/
View snip-woocommerce-review-args.php
<?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 / snip-rest-capabilities.php
Created Oct 10, 2018
Changes the standard capabilities to access SNIPs REST API to a different value.
View snip-rest-capabilities.php
<?php
/*
Plugin Name: snip - REST API Capability Changer
Plugin URI: https://rich-snippets.io/global-snippets-capabilities/
Description: Changes the standard capabilities to access SNIPs REST API to a different value.
Version: 0.1.0
Author: floriansimeth
Author URI: https://florian-simeth.de
License: License: GPLv2 or later