Skip to content

Instantly share code, notes, and snippets.

Torsten Landsiedel Zodiac1978

View GitHub Profile
@Zodiac1978
Zodiac1978 / request-update.php
Last active Apr 10, 2019
To trigger the auto update all you have to do is to create a small script in your WP root directory that bootstraps WP core and calls the function. Wait a few seconds, and your site should be updated. Check the Updates page in your Dashboard and confirm that you received the update email.
View request-update.php
<?php
// @link: https://wordpress.stackexchange.com/questions/183202/how-to-what-triggers-a-wordpress-auto-update
// @link: http://blog.birdhouse.org/2013/11/02/force-wordpress-auto-update/
require( dirname(__FILE__) . '/wp-load.php' );
wp_maybe_auto_update();
@Zodiac1978
Zodiac1978 / ux-problems.md
Last active Mar 25, 2019
Related Github issues and their status for my talk about UX and usability problems in the new WordPress block editor (aka Gutenberg) at WordCamp Osnabrück 2019
@Zodiac1978
Zodiac1978 / statify-mobile-track.php
Created Mar 22, 2019
Adds a new column in the statify table for mobile usage.
View statify-mobile-track.php
<?php
/**
* Plugin Name: Statify Mobile Tracking
* Description: Adds a new column in the statify table for mobile usage.
* Plugin URI: http://torstenlandsiedel.de
* Version: 1.0
* Author: Torsten Landsiedel
* Author URI: http://torstenlandsiedel.de
* Licence: GPL 2
* License URI: http://opensource.org/licenses/GPL-2.0
@Zodiac1978
Zodiac1978 / wpantivirus.php
Last active Feb 17, 2019
Safebrowsing API v4 check for WP Antivirus by Pluginkollektiv (NOT WORKING)
View wpantivirus.php
<?php
// API: https://developers.google.com/safe-browsing/v4/lookup-api
// Testlinks: https://testsafebrowsing.appspot.com/
/*
Possible inspirations:
https://stackoverflow.com/questions/42348760/google-safe-browsing-api-is-not-responding-sending-back-response-status
http://www.queryadmin.com/1512/google-safebrowsing-v4-php-example/
https://github.com/web2all/safebrowsingv4
@Zodiac1978
Zodiac1978 / kill-referrer-spam.php
Created Jan 28, 2019
Skip tracking for specific domains from the Community-contributed list of referrer spammers from Matomo.
View kill-referrer-spam.php
<?php
/**
* Plugin Name: Kill Referrer Spam for Statify
* Description: Skip tracking for domains from the Community-contributed list of referrer spammers from Matomo.
* Plugin URI: http://torstenlandsiedel.de
* Version: 1.0
* Author: Torsten Landsiedel
* Author URI: http://torstenlandsiedel.de
* Licence: GPL 2
* License URI: http://opensource.org/licenses/GPL-2.0
@Zodiac1978
Zodiac1978 / exclude-subs.php
Created Jan 2, 2019
Exclude ALL posts from sub categories
View exclude-subs.php
<?php
// https://wordpress.stackexchange.com/questions/64701/exclude-all-posts-from-sub-categories
function filter_out_children( $query ) {
if ( is_main_query() && is_category() && ! is_admin() ) {
$qo = $query->get_queried_object();
$tax_query = array(
'taxonomy' => 'category',
'field' => 'id',
@Zodiac1978
Zodiac1978 / add-cpt-to-search.php
Created Jan 2, 2019
Add All Custom Post Types to search
View add-cpt-to-search.php
<?php
/**
* Add All Custom Post Types to search
* Original code from here: https://remicorson.com/include-all-your-wordpress-custom-post-types-in-search/
*
* Returns the main $query.
*
* @access public
* @since 1.0
@Zodiac1978
Zodiac1978 / statify-useragent-tracking.php
Last active Oct 9, 2018
!!! WORK IN PROGRESS !!! – Adds a new column in the statify table for the User Agent.
View statify-useragent-tracking.php
<?php
/**
* Plugin Name: Statify UA Tracking
* Description: Adds a new column in the statify table for the User Agent string.
* Plugin URI: http://torstenlandsiedel.de
* Version: 1.0
* Author: Torsten Landsiedel
* Author URI: http://torstenlandsiedel.de
* Licence: GPL 2
* License URI: http://opensource.org/licenses/GPL-2.0
@Zodiac1978
Zodiac1978 / statify-feedback-posts.md
Last active Oct 3, 2018
List of blog posts about Statify (https://wordpress.org/plugins/statify/) with (hopefully) valuable feedback
View statify-feedback-posts.md

Leider finde ich es schon sehr wichtig, zu wissen ob jemand Mobile oder mit dem Desktop auf meine Seite kommt. Allein um den Content besser anzupassen. Gäbe es dafür eine Lösung? Vielleicht auch im Zusammenhang mit Statify?

https://raidboxes.de/statify-dsgvo-konformes-tracking/ https://github.com/pluginkollektiv/statify/issues/104

Mehr Möglichkeiten zur Einstellung der Datenaufbewahrungsfrist und Darstellung Ich würde die Daten gern etwas länger speichern um dann z.B über die erweiterte Auswertung größere Zeiträume zu betrachten. Hier müsste man dann aber auch den Graph im Backend Widget separat einstellen könne. Also z.B hier nur die letzten 14 Tage anzeigen.

Beitragstitel anstelle Permalinks Aktuell werden die Permalinks der Beiträge angezeigt. So lange man hier eine lesbare Variante gewählt hat ist das weniger ein Problem. Ich möchte aber gerade beim Relaunch dieser Seite (#CKxBlogRelaunch) darauf verzichten, deswegen wäre mir diese Option schon wichtig.

https://github.com/pluginkollektiv/statify

View no-notifications.php
<?php
/**
* Plugin Name: Turn off new user registration emails
* Description: Turns off new user registration emails just for the admin. No other notifications are affected.
* Plugin URI: http://torstenlandsiedel.de
* Version: 1.0
* Author: Torsten Landsiedel
* Author URI: http://torstenlandsiedel.de
* Licence: GPL 2
* License URI: http://opensource.org/licenses/GPL-2.0
You can’t perform that action at this time.