Skip to content

Instantly share code, notes, and snippets.

View swissspidy's full-sized avatar
🌴
On vacation

Pascal Birchler swissspidy

🌴
On vacation
View GitHub Profile
@swissspidy
swissspidy / language-updates-table.php
Last active April 4, 2020 11:20
Display a table with available translation updates on the WordPress update screen
<?php
/**
* Plugin Name: Translation Updates Table
*
* @author Pascal Birchler <pascal@required.ch>
* @license GPL2+
*/
/**
* Displays a table with available translation updates.
@swissspidy
swissspidy / web-stories-ad-manager.php
Last active July 26, 2021 08:53
OBSOLETE: Sample integration of Google Ad Manager with the Web Stories WordPress plugin
<?php
/**
* Plugin Name: Web Stories Ad Manager
* Description: Sample integration of Google Ad Manager with the Web Stories WordPress plugin.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
@swissspidy
swissspidy / web-stories-alexa-metrics.php
Created July 26, 2021 08:56
Sample integration of Alexa Certify analytics code with the Web Stories WordPress plugin.
<?php
/**
* Plugin Name: Web Stories Alexa Certify
* Description: Sample integration of Alexa Certify analytics code with the Web Stories WordPress plugin.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
@swissspidy
swissspidy / web-stories-taxonomy-example.php
Created August 30, 2021 09:39
Example plugin adding custom taxonomies to web stories.
<?php
/**
* Plugin Name: Web Stories Taxonomy Example
* Description: Example plugin adding custom taxonomies to web stories.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
@swissspidy
swissspidy / web-stories-exclude-from-search.php
Last active September 15, 2021 15:30
Mini-plugin to force exclude Web Stories from the built-in WordPress search results
<?php
/**
* Plugin Name: Web Stories Force Exclude From Search
* Description: Web Stories are by default excluded from the built-in WordPress search results. But some plugins might be interfering with that. This plugin tries to force-exclude stories again.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.2
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
@swissspidy
swissspidy / web-stories-yoast-canonical-fix.php
Last active September 22, 2021 16:27
Temporary workaround to fix duplicate canonical links when using Yoast SEO
<?php
/**
* Plugin Name: Web Stories Yoast SEO Canonical Fix
* Description: Temporary workaround to fix duplicate canonical links when using Yoast SEO
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
@swissspidy
swissspidy / web-stories-parsely-analytics.php
Last active December 3, 2021 13:39
Sample integration of Parse.ly analytics code with the Web Stories WordPress plugin.
<?php
/**
* Plugin Name: Web Stories Parse.ly Analytics
* Description: Sample integration of Parse.ly analytics code with the Web Stories WordPress plugin.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
@swissspidy
swissspidy / web-stories-include-in-search.php
Last active January 11, 2022 19:23
Mini-plugin to include Web Stories in the built-in WordPress search results
<?php
/**
* Plugin Name: Web Stories Force Include In Search
* Description: Web Stories are by default excluded from the built-in WordPress search results. This plugin includes stories again.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
@swissspidy
swissspidy / web-stories-unhide-media-items.php
Created March 15, 2022 15:03
Mini-plugin to stop hiding generated attachments from the WordPress media library
<?php
/**
* Plugin Name: Web Stories Unhide Generated Media
* Description: Mini-plugin to stop hiding generated attachments from the WordPress media library.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
@swissspidy
swissspidy / web-stories-comscore-analytics.php
Created April 21, 2022 16:48
Sample integration of Comscore analytics code with the Web Stories WordPress plugin.
<?php
/**
* Plugin Name: Web Stories Comscore Analytics
* Description: Sample integration of Comscore analytics code with the Web Stories WordPress plugin.
* Plugin URI: https://wp.stories.google/
* Author: Pascal Birchler, Google
* Author URI: https://opensource.google.com/
* Version: 0.0.1
* License: Apache License 2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0