We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
<?php | |
/* | |
Plugin Name: Instrument Hooks for WordPress | |
Description: Instruments Hooks for a Page. Outputs during the Shutdown Hook. | |
Version: 0.1 | |
Author: Mike Schinkel | |
Author URI: http://mikeschinkel.com | |
*/ | |
if (isset($_GET['instrument']) && $_GET['instrument']=='hooks') { |
[user] | |
name = Eloi Poch | |
email = eloi.poch@gmail.com | |
[core] | |
autocrlf = input | |
[color] | |
ui = true |
<?php | |
/* | |
Here's a couple of metaboxes that I've recently created using this system | |
*/ | |
$subpostings = redrokk_metabox_class::getInstance('subpostings', array( | |
'title' => '(optional) Subscription for Postings', | |
'description' => "As an optional feature, you have a complete api at your disposal which will allow you the ability to offer and manage member posts. In addition to these settings, you may need to create the associated pages for accepting posts from your frontend.", |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
P2 Check In http://wordpress.org/extend/plugins/p2-check-in/ | |
Markdown for P2 http://wordpress.org/extend/plugins/markdown-for-p2/ | |
P2 Likes http://wordpress.org/extend/plugins/p2-likes/ | |
P2 Resolved Posts http://wordpress.org/extend/plugins/p2-resolved-posts/ | |
Who's Online http://wordpress.org/extend/plugins/wp-whos-online/ | |
Local Time http://wordpress.org/extend/plugins/localtime/ | |
WP-Email-Notificator http://wordpress.org/extend/plugins/wp-email-notificator/ |
<?php | |
class Marko_Shortcodes { | |
public function __construct() { | |
add_shortcode( 'engine_info', array( $this, 'engine_info' ) ); | |
} | |
public function engine_info( $atts ) { | |
global $wp_version, $wpdb, $batcache, $wp_object_cache; |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
sites | |
|__ ms.dev | |
| |__ content | |
| |__ index.php | |
| |__ wp => ../../wordpress/stable | |
| |__ wp-config.php | |
|__ one.dev | |
| |__ content | |
| |__ index.php | |
| |__ wp => ../../wordpress/stable |
The reason you might not be able to remove the Open Sans font that Wordpress >= 3.8 adds to the frontend is that quite a few WP styles and scripts list 'open-sans' as a dependancy when being registered and enqueued. When you remove the 'open-sans' style the other plugins dependant on it will not load. So you just need to deregister WP's open sans style and register your own, with a false
value for the src
like below.
Credit to seventhsteel from http://wordpress.org/support/topic/turning-off-open-sans-for-the-38-dashboard
<?php | |
/** | |
* Debugging WordPress things. | |
* | |
* All of this belongs in your wp-config.php file. | |
* | |
* This will make sure that the code you release is, at a minimum, | |
* relatively free of PHP notices and warnings. | |
* | |
* - WP_DEBUG: This turns on debugging mode. |