This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: UI Mastodon Verification Link | |
* Description: Adds mastodon rel=me profile link to the html head. | |
* Version: 1.0 | |
* Author: Fabian Wolf | |
* Author URI: https://usability-idealist.net/ | |
* License: GNU GPL v2 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'admin_title', 'fix_admin_page_title' , 10, 2 ); | |
function fix_admin_page_title( $admin_title, $title ) { | |
global $post, $title, $action, $current_screen; | |
$return = $admin_title; | |
if( isset( $current_screen->post_type ) && $action == 'edit' ) { | |
//$return = $post->post_title . ' (' . $post->ID . ') - ' . get_bloginfo('name'); | |
$return = $post->post_title . ' (' . $post->ID . ') - ' . $admin_title; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Metafield Shortcode Micro Plugin. | |
* Description: Inserts content of a custom meta field using a shortcode. Use [mfs_custom_field field='my_field_name'] to insert any kind of meta field value inside of your posts. Works both in WP v3.7 - 5.x and ClassicPress. | |
* Version: 1.0 | |
* Author: Fabian Wolf | |
* Author URI: https://usability-idealist.net/ | |
* License: GNU GPL v2 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* When looking into how to properly and useful reorder the total / subtotal sum in the Invoice PDF which is generated by Germanized for WooCommerce, I stumbled upon this .. gem .. o.O | |
* I'd call it one of the most useless incremental counts I've ever seen so far. | |
* @file woocommerce-germanized-pro/templates/invoives/table-gross.php | |
* | |
*/ | |
?> | |
<?php if ( $order_totals = $invoice->get_totals() ) : $i = 0; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ui_leaflet_map latitude="51.51752" longitude="7.14518" height="99vh" zoom="12" use_search="true" search_position="topright" use_locate="1" locate_marker="Sie befinden sich <strong>derzeit HIER</strong>." zoom_position="bottomleft" marker_icon_fa_class="anchor"]<strong>Mittelpunkt des Ruhrgebiets</strong><br />Quartier Röhlinghausen, Rolandstr. 49/51[/ui_leaflet_map] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* RSS Feed embedding using shortcode(s). Implemented as function instead of class, both for easier copy + paste into the functions.php file of your current (child) theme, and also quicker understanding whats going on :) | |
* Normally, this would be implemented as a class with a nifty auto-loader / auto-shortcode registration. | |
* | |
* @author Fabian Wolf (@link https://wp-devil.de/) | |
*/ | |
if( !function_exists( 'wp_rss' ) ) { | |
include_once( ABSPATH . WPINC . '/rss.php' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Remove WooCommerce Nag | |
* Plugin URI: https://devanswers.co/remove-woocommerce-nag/ | |
* Description: Gets rid of nag: "Connect your store to WooCommerce.com to receive extensions updates and support.". Enhanced by <a href="https://usability-idealist.net">Fabian Wolf</a>. | |
* Version: 1.1 | |
* Author: DevAnswers | |
* Author URI: https://devanswers.co/ | |
*/ | |
if ( !class_exists( 'RemoveWooCommerceNag') ) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$x = 'eyJoYWxsbyI6IndlbHQiLCJzb25nLXRpdGVsIjp7Im1laW4iOiJnZWhpcm4iLCJkZWluIjoiZ2VoaXJuIn0sInVybCI6Imh0dHBzJTNBJTJGJTJGdXNhYmlsaXR5LWlkZWFsaXN0Lm5ldCUyRiUyM2tvbnRha3QiLCJlaW5zX3BsdXMiOnRydWV9'; | |
$y = base64_decode( $x ); | |
$z = json_decode( urldecode( $y ), true ); // true ergibt ein array, ohne haben wir reine StdClass-Objektorgie | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
video_player_selected => "totem", | |
video_players => { | |
mplayer => { | |
arg => "-prefer-ipv4 -really-quiet -title *TITLE*", | |
audio => "-audiofile *AUDIO*", | |
cmd => "/usr/bin/mplayer", | |
fs => "-fs", | |
srt => "-sub *SUB*", | |
}, | |
mpv => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Fabian Wolf (https://wp-devil.de) | |
* @license GNU GPL v2 or later | |
*/ | |
class AssetsPreloaderExample { | |
function __construct() { | |
add_action( 'wp', array( $this, 'preload_assets' ) ); | |
add_action( 'wp_enqueue_scripts', array( $this, 'init_assets' ) ); |
NewerOlder