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 / 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 / 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
*/
<?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 October 10, 2018 04:36
Changes the standard capabilities to access SNIPs REST API to a different value.
<?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
@code-flow
code-flow / the-events-calendar-json-deactivation.php
Created October 3, 2018 08:26
This plugin deactivates JSON+LD outpout of the "The Events Calendar" plugin.
<?php
/*
Plugin Name: The Events Calendar JSON+LD Deactivation
Description: This plugin deactivates JSON+LD outpout of the "The Events Calendar" plugin.
Version: 0.1.0
Author: Florian Simeth
Author URI: https://rich-snippets.io
License: GPLv2 or later
*/
@code-flow
code-flow / snip-permissions.php
Created May 11, 2018 09:14
Rich Snippets WordPress Plugin Global Snippet Permissions
<?php
/*
Plugin Name: snip permission configuration
Plugin URL: https://rich-snippets.io/global-snippet-permissions/
Description: Set correct permission to user roles.
Version: 0.1.0
Author: wpbuddy
Author URI: https://wp-buddy.com
*/
@code-flow
code-flow / countdown-import-helper.php
Created May 3, 2017 07:40
Correct import behaviour when WPAllImport is used.
<?php
/*
Plugin Name: Countdown Import Helper
Description: Correct import behaviour when WPAllImport is used.
Version 0.1.0
*/
add_action( 'pmxi_saved_post', 'cdih_save_post', 10, 1 );
<?php
namespace floriansimeth\cli;
use WP_CLI\Formatter;
if ( ! defined( 'ABSPATH' ) ) {
die();
}
@code-flow
code-flow / fss-add-icons.php
Created July 7, 2014 07:11
Fixed Social Share Icons AddOn (Example)
<?php
/*
Plugin Name: Fixed Social Share Icons AddOn (Example)
Description: Adds more social icons to the Fixed WordPress Social Share Button
Version: 1.0
*/
/**
* Adds the icons in the style.css definition to the list of icons.
@code-flow
code-flow / purple-heart-to-pages-as-shortcode.php
Created April 23, 2014 06:49
Purple Heart to Pages as Shortcode
<?php
/*
Plugin Name: Purple Heart to Pages as Shortcode
*/
add_action( 'wp', 'add_phrating_to_pages', 10 );
function add_phrating_to_pages() {
global $post, $wpb_purpleheart;