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 | |
if ( ! function_exists( 'shortcode_exists' ) ) : | |
/** | |
* Check if a shortcode is registered in WordPress. | |
* | |
* Examples: shortcode_exists( 'caption' ) - will return true. | |
* shortcode_exists( 'blah' ) - will return false. | |
* | |
* @param string $shortcode The name of the shortcode to check |
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: Remember Me Checked | |
* Plugin URI: http://bungeshea.com/remember-me-checked/ | |
* Description: Automatically checks the "Remember Me" box on the WordPress login page | |
* Author: Shea Bunge | |
* Author URI: http://bungeshea.com | |
* Version: 1.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
<!-- | |
See: http://bungeshea.com/easy-google-search-form/ | |
Remember to replace 'example.com' with the domain of your site. | |
--> | |
<form action="http://www.google.com/search" method="get"> | |
<input type="hidden" name="q" value="site:http://example.com"> | |
<input type="text" name="q" alt="search"> | |
<input type="submit" value="Search"> | |
</form> |
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
@echo Hello World! | |
@pause |
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 | |
/** | |
* A sunrise.php drop in that allows you to use WordPress' built in `domain` | |
* and `path` settings for MultiSite blogs. | |
* | |
* Some limitations: | |
* - Using this with a MS install and paths (not subdomains) does some | |
* weird stuff when updating `siteurl` and `home` while updating domain. | |
* So you'll you'll have to update those separately. There are probably | |
* filters to fix this. |
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: Custom WordPress Email | |
* Plugin URI: https://gist.github.com/4137632 | |
* Description: Change how WordPress sends emails | |
* Author: Shea Bunge | |
* Author URI: http://bungeshea.com | |
* Version: 1.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
<?php | |
/** | |
* Plugin Name: Widget Shortcode | |
* Plugin URI: http://wp.smashingmagazine.com/2012/12/11/inserting-widgets-with-shortcodes/ | |
* Description: Easily insert any WordPress sidebar widget into a post or page using a shortcode. | |
* Author: Smashing Magazine | |
* Author URI: http://www.smashingmagazine.com | |
* Version: 1.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
<?php | |
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) | |
exit(); | |
if ( is_multisite() ) { | |
$blogs = $wpdb->get_results( "SELECT blog_id FROM $wpdb->blogs", ARRAY_A ); | |
if ( $blogs ) { | |
foreach ( $blogs as $blog ) { | |
switch_to_blog( $blog['blog_id'] ); |
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 | |
/** | |
* Change Admin URL | |
* | |
* Copyright (C) 2010 hakre <http://hakre.wordpress.com/> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU Affero General Public License as | |
* published by the Free Software Foundation, either version 3 of the | |
* License, or (at your option) any later version. |
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
(function( $ ) { | |
"use strict"; | |
$(function() { | |
// Your code here | |
}); |
OlderNewer