Skip to content

Instantly share code, notes, and snippets.

Avatar

Fuxia Scholz thefuxia

View GitHub Profile
@thefuxia
thefuxia / lazy-title-updates.php
Last active Jan 18, 2021
T5 Lazy Title UpdatesFill missing post titles from content when a post is called
View lazy-title-updates.php
<?php
/**
* Plugin Name: T5 Lazy Title Updates
* Description: Fill missing post titles from content when a post is called
* Plugin URI:
* Version: 2013.01.08.02
* Author: Fuxia Scholz
* Licence: MIT
* License URI: http://opensource.org/licenses/MIT
*/
View all-actions-list.php
<?php # -*- coding: utf-8 -*-
/*
Plugin Name: All Actions List
Description: Lists all actions run during one request.
Version: 1.0
Required: 3.1
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
*/
View t5-no-comment-cookies.php
<?php # -*- coding: utf-8 -*-
/* Plugin Name: No Comment Cookies
*/
remove_action( 'set_comment_cookies', 'wp_set_comment_cookies' );
View t5-force-log-in.php
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Force Log In
* Description: Grant access after log in only
* Plugin URI: http://toscho.de/?p=2207
* Version: 2012.08.28
* Author: Thomas Scholz
* Author URI: http://toscho.de
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
View plugin-class-demo.php
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: Plugin Class Demo
* Description: How I am using the base class in plugins.
* Plugin URI:
* Version: 2012.09.29
* Author: Fuxia Scholz
* License: GPL
* Text Domain: plugin_unique_name
* Domain Path: /languages
@thefuxia
thefuxia / t5-plugin-log.php
Created May 27, 2012
Plugin Log: Log all plugin (de)activations.
View t5-plugin-log.php
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Plugin Log
* Description: Log all plugin (de)activations.
* Version: 2012.05.27
* Author: Thomas Scholz <info@toscho.de>
* Author URI: http://toscho.de
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*
View class.Wpse_Datepicker_Example.php
<?php
class Wpse_Datepicker_Example extends Wpse_Plugin_Options_Page
{
protected $title = 'jQuery Date Picker';
protected $menu_slug = 'wpse_datepicker';
protected $option = 'wpse_datepicker';
protected $scripts = array ( 'jquery-ui-datepicker' );
// not inherited
public static function get_instance()
@thefuxia
thefuxia / t5-parent-terms-body-class.php
Last active Jul 8, 2020
Parent Terms in body_class
View t5-parent-terms-body-class.php
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Parent Terms in body_class
* Description: Adds all parent terms of a term archive to <code>body_class()</code>.
* Version: 2012.0.14
* Author: Fuxia Scholz
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/
View class.T5_Nav_Menu_Walker_Simple.php
<?php # -*- coding: utf-8 -*-
/**
* Create a nav menu with very basic markup.
*
* @author Thomas Scholz http://toscho.de
* @version 1.0
*/
class T5_Nav_Menu_Walker_Simple extends Walker_Nav_Menu
{
/**
@thefuxia
thefuxia / caption-with-description.php
Last active Jun 3, 2020
T5 Caption With Description
View caption-with-description.php
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Caption With Description
* Description: Adds the description to images with a caption if you set <code>desc=1</code> in the shortcode.
* Version: 2015.03.26
* Author: Fuxia Scholz
* Author URI: https://fuxia.me
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/
You can’t perform that action at this time.